Test site and documentation for Clever html engine • Errors may occur and future news may be shown • ver.1.7.3: 78 core functions.
It will be translated with function lang('English text')
You will have to setup source-files for your project in file: translate.inc.php (inside function scannfor())
To create the table with strings to translate a function will scann all the source after prefix: lang(' .. and with suffix: ')
Other prefix: mess(' (See more in file translate.inc.php)
Strings without these prefixes must have prefix: '@ so it can be found.
All translated languages is defined in file: _trans.sys.json
If there are no translation, the english text will output with prefix @ removed
You can use AI (Gemini) to update the translate group in
file _trans.sys.json based on content in _trans.tmp.json
Can you translate into Danish/French/German/Spanish and create a JSON list as a translation table.
Use : as field separator and , as record separator. Remember to omit the trailing comma.
All occurrences of " in the texts must be escaped with \ resulting in "\
If duplicates exist, they must be removed.
(If line breaks exist in the texts, they must be changed to a single space.)
Any existing translated texts should not be updated.
Template:
"translation": {
"": "",
}
Here is the list:
[Copy/Paste the list to here]
Searching for string: lang('@
Project FILE: ../php2html.lib.php
Project FILE: ./../filedata.inc.php
Project FILE: ./CustomerOrder.page.php
Project FILE: ./Demo.page.php
Project FILE: ./PHP2HTML-intro.page.php
Project FILE: ./accountPlan.page.php
Project FILE: ./card.page.php
Project FILE: ./description.page.php
Project FILE: ./documentation.page.php
Project FILE: ./files.page.php
Project FILE: ./functions.page.php
Project FILE: ./input.page.php
Project FILE: ./navigate.page.php
Project FILE: ./other.page.php
Project FILE: ./pages.page.php
Project FILE: ./support.page.php
Project FILE: ./table.page.php
Project FILE: ./tinyEditor.page.php
Project FILE: ./translate.page.php
Project FILE: ./docHelp.inc.php
Searching for string: '@
Project FILE: ../php2html.lib.php
Project FILE: ./../filedata.inc.php
Project FILE: ./CustomerOrder.page.php
Project FILE: ./Demo.page.php
Project FILE: ./PHP2HTML-intro.page.php
Project FILE: ./accountPlan.page.php
Project FILE: ./card.page.php
Project FILE: ./description.page.php
Project FILE: ./documentation.page.php
Project FILE: ./files.page.php
Project FILE: ./functions.page.php
Project FILE: ./input.page.php
Project FILE: ./navigate.page.php
Project FILE: ./other.page.php
Project FILE: ./pages.page.php
Project FILE: ./support.page.php
Project FILE: ./table.page.php
Project FILE: ./tinyEditor.page.php
Project FILE: ./translate.page.php
Project FILE: ./docHelp.inc.php
The current strings to translate:
Without duplicates - Total: 1305 strings. The longest phrase is on 226 characters.
Analysing - en / English
Below is the updated and sorted JSON code, that you can use to create/complete/maintain your language.
How:
Copy / Paste the string-list to your editor, and translate to your language. (UTF8 file-format!)
If some strings are missing in the language translate, the english text will be shown with prefix ???:
Let your browser search and mark this prefix, to get overview
Be aware of character: " inside strings, must be escaped as: \" without separating space !
If you have trouble after editing _trans.sys.json, you can test the file in
a validator e.g.: https://jsonformatter.curiousconcept.com/
To use your translate, the text should be copyed to the system-file: _trans.sys.json
If you have a complete translated language, do share it on GITHUB
KEY (english) TRANSLATED