Loading...
 
Skip to main content

Create a new language for Tiki, "generic"

Status
Open
Subject
Create a new language for Tiki, "generic"
Version
18.x Regression
Category
  • Feature request
Feature
i18n (Multilingual, l10n, Babelfish)
Resolution status
New
Submitted by
hman
Lastmod by
hman
Rating
(0)
Related-to
Description

Please create a new language for Tiki, a pseudo language which I would call "generic". Pseudo because it doesn't contain real language, but a "dummy" translation that gets automatically created by tools like I have introduced in the "Create a tool to" request, which extracts everything in tra() etc. clauses found in .php, .tpl or .js source code, thrown into an associative array to be used as language.php + language.js.

The keys would be the original English text, as it would be on a "real" translation, the values would be an indicator ("##") - so strings can easily be searched, the file name where the string was found and the line number. Examples can be found in the above mentioned request. This gets structured by single line comments that indicate the full (relative) path to the particular file.

Having this as a "regular" language brings the advantage that every Tiki installation will automatically bear a copy of this generic "translation" readily waiting to be translated by future translators.

These could translate line by line, occasionally looking up the source code as indicated in the value part of the associative array, to understand the context.

Translators could also easily do partial-only translations, and when later on untranslated text pops up, that text, although looking really ugly, auto-identifies itself.

Of course the problem remains that sometimes there have to be different translations depending on context, but at the moment Tiki's tra() is completely blind for context, but rectifying this is a bigger project of its own.

Files
  1. Language
  2. Language
Importance
4
Easy to solve?
10 easy
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7711
Created
Saturday 27 March, 2021 10:03:12 UTC
by hman
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages