பயனர்:Jayarathina/iwt: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
வரிசை 62:
This tool can be used to search and replace a list of frequently translated words. This can be useful if you often translate words specific to your domain like name of chemical elements or list of technical terms or as simple as month names.
====Instructions to add replace list====
'''If you know JavaScript:''' You have to create
'''If you don't know JavaScript:''' Please follow the following steps:
* Place the following
<source lang="javascript">
var relpaceList = {
' ஜனவரி' : ' January',
' பெப்ரவரி' : ' February',
' மார்ச்' : ' March',
' ஏப்ரல்' : ' April',
' மே' : ' May',
' ஜூன்' : ' June',
' ஜூலை' : ' July',
' ஆகஸ்ட்' : ' August',
' செப்டம்பர்' : ' September',
' அக்டோபர்' : ' October',
' நவம்பர்' : ' November',
' டிசம்பர்' : ' December'
};
</source>
* If you observe the above code, you can see
** By default case insensitive replace will occur. The second word can be a regular expression and regular expression modifiers can be applied to make it case insensitive. That is instead of enclosing the words in a quote, enclose it in a slash and add a g (for global) at the end as shown. The full explanation of all available regular expression options will be out of scope for this documentation. See [http://www.regular-expressions.info/ regular-expressions.info] and you can test your regular espression at [http://www.regular-expressions.info/javascript.html regexpal.com:JavaScript RegExp Object]
<source lang="javascript">
var relpaceList = {
**If you feel it is too hard, please leave message in my [[பயனர்_பேச்சு:Jayarathina|talk page]], I will be glad to help you to form your list.▼
'ஜனவரி' : /January/g,
* Please make sure that your list of words do not contain special characters. If they are present, they should be properly escaped to be used inside a regular expression. More specifically all of these should be escaped: \ ^ $ * + ? . ( ) | { } [ ]▼
' பெப்ரவரி' : /February/g
};
</source>
▲
▲*
I have tested with
===Sort list of Tamil words===
|