issues
search
ugml
/
php-client
ugamela is an open-source clone of the popular browsergame ogame.
https://ugamela.org
GNU Affero General Public License v3.0
14
stars
5
forks
source link
use XLIFF format as a base for i18n for portability instead of php arrays
#41
Open
Phoscur
opened
6 years ago
Phoscur
commented
6 years ago
build XLIFF from the current arrays in language/en by hand or with
https://github.com/oyagev/PHP-XLIFF
check which annotations and attributes of the XLIFF format are going to be used for ugamela
load XLIFF (in a way like symphony does it?)
Pro
Not only professional translators can profit of annotations for translation
XLIFF can be interpreted and thereby reused in other clients (not only PHP)
Separation of concerns: controller logic and translations don't necessarily need to be coupled
Contra
Performance (parsing without caching the XLIFF globally)
Added complexity: any other i18n technique will be more complex than PHP arrays
Other formats like gettext and .po files might be more recognised by the PHP community currently
Pro
Contra