Maintenance of project translation
Clever html engine
PHP2HTML


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 width COLLAPSE: 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]


Select a language: TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card width COLLAPSE: Click to close all cards;" EXPAND: Click to open all cards;"
The actual language is en : English /



Hide/show some (empty) languages in the language selector
Select amongst installed languages
The system is prepared for 184 languages

Change language to the selected


Translating language strings: TOGGLE-height: Click icon to toggle viewHeight for this card WIDE: Click to maximize/normalize this card width COLLAPSE: Click to close all cards;" EXPAND: Click to open all cards;"
Analysing translatibly text in the project:

Searching for string: lang('@
Project FILE: ../php2html.lib.php
Project FILE: ./translate.page.php
Project FILE: ./../filedata.inc.php
Project FILE: ./Demo.page.php
Project FILE: ./CustomerOrder.page.php
Project FILE: ./accountPlan.page.php
Project FILE: ./tinyEditor.page.php
Project FILE: ./functions.page.php
Project FILE: ./PHP2HTML-intro.page.php
Project FILE: ./card.page.php
Project FILE: ./input.page.php
Project FILE: ./table.page.php
Project FILE: ./pages.page.php
Project FILE: ./translate.page.php
Project FILE: ./files.page.php
Project FILE: ./navigate.page.php
Project FILE: ./description.page.php
Project FILE: ./support.page.php
Project FILE: ./other.page.php

Searching for string: '@
Project FILE: ../php2html.lib.php
Project FILE: ./translate.page.php
Project FILE: ./../filedata.inc.php
Project FILE: ./Demo.page.php
Project FILE: ./CustomerOrder.page.php
Project FILE: ./accountPlan.page.php
Project FILE: ./tinyEditor.page.php
Project FILE: ./functions.page.php
Project FILE: ./PHP2HTML-intro.page.php
Project FILE: ./card.page.php
Project FILE: ./input.page.php
Project FILE: ./table.page.php
Project FILE: ./pages.page.php
Project FILE: ./translate.page.php
Project FILE: ./files.page.php
Project FILE: ./navigate.page.php
Project FILE: ./description.page.php
Project FILE: ./support.page.php
Project FILE: ./other.page.php


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
Missing in


Active translate table
Here you can see the actuel translate table