Maintenance of project translation
Skip to the contentGo to the view tools

translate.page.php



Test site and documentation for Clever html engine • Errors may occur and future news may be shown • ver.1.7.3: 78 core functions.


Maintenance of project translation
MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.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]
Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.


MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.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
Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.


MOVE: Drag to place this card elsewhere among the cards. Alt + arrow up/down: one place. The order is remembered in this browser.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: ./../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



(The files are not changed by just viewing this page)

The file _trans.en.tmp.json contains the 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




The file with all keys: sys_2Google.txt
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: 2 % translated
There are missing: 1273 of 1305
Missing in English


Active translate table
Here you can see the actuel translate table


Drag to resize the card (or use the arrow keys). Double-click or Home: original sizeColumn view: the column decides the width of the card - only the height can be dragged (down to less than the content). Turn the column view off to change the width.