htm_Input htm_Input() used for input and output of values of various variables htm_Table Example on module htm_Table() htm_Card Example and notes about htm_Card() Page layout About making page layout Navigate About menues an link buttons Others Buttons, Messages and dialog
Test site and documentation for Clever html engine • Errors may occur and future news may be shown • ver.1.4.1: 60+ core functions.
Maintenance of project translation About translate system:TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card widthCOLLAPSE: Click to close all cards;" EXPAND: Click to open all cards;"
All english textstrings to be translated, should have prefix '@
in the source. 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
Try ask Gemini:
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]
Translating language strings:TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card widthCOLLAPSE: Click to close all cards;" EXPAND: Click to open all cards;"
The current strings to translate: Without duplicates - Total: 1016 strings. The longest phrase is on 179 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
A file _trans.en.tmp.json has been created with the content of translation-data You can use it to update _trans.sys.json. You can also let Gemini translate all strings containing "en ???: " and get a complete translation group to substitupe in translate file.(_trans.sys.json)
The newly generated file _trans.en.tmp.json
A file with all keys: sys_2Google.txt has been created. You can use it in Google translate. Do copy-paste the content from this window...
The newly generated file to Google-translate
Outdated keys ? Unused keys in language "en : English / " in this project (maybe renamed key): None
Status: 95 % translated There are missing: 53 of 1016