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

i18n: Add explanation for locales and automatic language setting #10008

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

stephanbogner
Copy link

As discussed in #9684 I think the docs could be enhanced by adding the following:

  • Explanation on locales and language
  • A simple example script to set the game’s language based on the player’s OS language

This is my first commit for the docs so I am not sure:

  • If the writing style is correct
  • If I used the .rst syntax correctly

So help is very much appreciated ❤️

@AThousandShips AThousandShips changed the title i18n: Added explanation for locales and automatic language setting i18n: Add explanation for locales and automatic language setting Sep 27, 2024
@AThousandShips AThousandShips added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation labels Sep 27, 2024
tutorials/i18n/internationalizing_games.rst Outdated Show resolved Hide resolved
tutorials/i18n/internationalizing_games.rst Outdated Show resolved Hide resolved
tutorials/i18n/internationalizing_games.rst Outdated Show resolved Hide resolved
stephanbogner and others added 5 commits October 2, 2024 17:50
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
Co-authored-by: Max Hilbrunner <[email protected]>
@stephanbogner
Copy link
Author

@mhilbrunner and @AThousandShips Thanks for your help ❤️
Should be good now (hopefully)

@stephanbogner
Copy link
Author

Ok damn. Will have to get the build tools working locally to be more efficient 😅

@stephanbogner
Copy link
Author

@mhilbrunner @AThousandShips

Seems to work now:

Local build output
make FILELIST='tutorials/i18n/internationalizing_games.rst ' html 

sphinx-build -M html -d _build/doctrees   '.'  "_build"/html tutorials/i18n/internationalizing_games.rst 
Sphinx v4.4.0 in Verwendung
Build language: en, i18n tag: False
Lade Übersetzungen [en]…erledigt
loading pickled environment... erledigt
building [mo]: targets for 0 po files that are specified
building [html]: 1 source files given on command line
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... WARNING: search index couldn't be loaded, but not all documents will be built: the index will be incomplete.
erledigt
writing output... [100%] tutorials/i18n/internationalizing_games                                                                                                                     
generating indices... genindex erledigt
writing additional pages... search erledigt
copying images... [100%] tutorials/i18n/img/localized_name.webp                                                                                                                      
copying downloadable files... [100%] tutorials/scripting/gdextension/files/cpp_example/SConstruct                                                                                    
copying static files... erledigt
copying extra files... erledigt
dumping search index in English (code: en)... erledigt
dumping object inventory... erledigt
build abgeschlossen, 1 warning.

The HTML pages are in _build/html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants