et-nik / gameap

Game Admin Panel (GameAP) is the opensource game servers control panel.
https://gameap.com
102 stars 23 forks source link

New Language #43

Open Adek01 opened 4 years ago

Adek01 commented 4 years ago

Hi et-nik! Can u explain me how to add a new language for webpanel? (settings) I'll send for you too!

et-nik commented 4 years ago

Hello @Adek01 You should create new sub-directory in resources/lang, eg 'fr' for French. You may copy existing ru or en directories. https://github.com/et-nik/gameap/tree/develop/resources/lang

Then you should add language files. Example you may copy auth.php to your lang directory and edit files.

Edit the second part in language files. Examples (from auth.php)

    ...
    'sign_in' => 'Login',
    'sign_up' => 'Registrierung',
    ...
    ...
    'sign_in' => '登入',
    'sign_up' => '注册',
    ...

You can skip some phrases. If elements doesn't exists, the panel will replace them with English. Let me know if you have any questions.

What language do you want to add?

Adek01 commented 4 years ago

Thanks for information, The language what i prefer to add is Hungarian. Maybe today i'll make the translate :)

et-nik commented 4 years ago

Appreciating a PR if you could make one.