Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
custom:text.ini [2023/11/18 17:44] – Document the JS string support digital mancustom:text.ini [2024/03/11 21:33] (current) – link to gettext.js page digital man
Line 48: Line 48:
 Follow the following steps to customize JavaScript strings using the ''text.ini'' file. Follow the following steps to customize JavaScript strings using the ''text.ini'' file.
  
-The text string you wish to customize must be wrapped in call to ''gettext()'' in a JavaScript file (e.g. ''*.js'', ''*.ssjs'', or ''*.xjs'').+The text string you wish to customize must be wrapped in call to ''gettext()'' in a JavaScript file (e.g. ''*.js'', ''*.ssjs'', or ''*.xjs'').
  
   - Edit the ''[[dir:ctrl]]/text.ini'' file (create, if it doesn't already exist) using a text editor.   - Edit the ''[[dir:ctrl]]/text.ini'' file (create, if it doesn't already exist) using a text editor.
   - Add the ''[JS]'' section to end of the ''text.ini'' file, if it doesn't already exist.   - Add the ''[JS]'' section to end of the ''text.ini'' file, if it doesn't already exist.
-  - Add the original string following by equals (''='') then the new custom string+  - Add the original string followed by equals (''='') then the new custom string, or colon ('':'') and the new custom string as a string literal 
 +  - The JavaScript file must ''require()'' or ''load()'' the ''[[custom:javascript:lib:gettext.js]]'' load library.
  
 +Example
 +<code ini>
 +[JS]
 +Find Text in Messages = find yo text bro
 +</code>
 ===== Alternate Languages =====  ===== Alternate Languages ===== 
  
Line 61: Line 67:
  
 ===== See Also ===== ===== See Also =====
-  * [[text.dat]] File 
   * [[:custom:|custom index]]   * [[:custom:|custom index]]
 +  * [[text.dat]] File
 +  * [[custom:javascript:lib:gettext.js]] Library
 +  * [[:custom:localization]]
  
 {{tag>text.dat}} {{tag>text.dat}}