Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Language #43

Open
Adek01 opened this issue Apr 29, 2020 · 3 comments
Open

New Language #43

Adek01 opened this issue Apr 29, 2020 · 3 comments

Comments

@Adek01
Copy link

Adek01 commented Apr 29, 2020

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

@et-nik
Copy link
Owner

et-nik commented Apr 30, 2020

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
Copy link
Author

Adek01 commented Apr 30, 2020

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

@et-nik
Copy link
Owner

et-nik commented Apr 30, 2020

Appreciating a PR if you could make one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants