![]() |
language translation
So, I am trying to understand how to use translations on Graal. Maybe someone could help me. This is what I have so far.
folderconfig PHP Code:
PHP Code:
PHP Code:
Wasn't sure how to use _(), and how to set the language file up. Also I read, but not well documented, http://www.graal.net/index.php/Creat...slation_System |
does your server have reading rights to that folder (in the rights of '(npcserver)')? also the file must end with _DOMAIN.po
example for the german translation: so create a file in levels/translations/* and call it 'graalgui_de.po' (de = german domain). use this as an example for the german translation: PHP Code:
PHP Code:
im not too sure if its working for stuff like the players chat, I always use it for Clientside stuff on iEra (npcs chat, the text for guis etc). |
Quote:
PHP Code:
Here is contents of that file: Quote:
PHP Code:
|
oh, i forgot the loadtranslation. leave out the _de part. the parameter is the name before your _DOMAIN.
|
Quote:
|
| All times are GMT +2. The time now is 06:19 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.