### Flatsweep Translation Guide Source: https://github.com/giantpinkrobots/flatsweep/blob/main/README.md This guide explains the process of translating Flatsweep into different languages. It involves copying an existing language file (e.g., lang_en.py) and renaming it to reflect the target language (e.g., lang_es.py). Users should only modify the text within quotes, leaving variable names unchanged. ```python def translate_to_spanish(): # Copy lang_en.py to lang_es.py # Modify text within quotes in lang_es.py pass ``` -------------------------------- ### Add Language File to meson.build Source: https://github.com/giantpinkrobots/flatsweep/blob/main/README.md This snippet illustrates how to add a new language file (e.g., 'lang_es.py') to the 'flatsweep_sources' list within the meson.build file. This ensures the build system includes the new language file. ```meson flatsweep_sources = [\n 'main.py',\n 'lang_en.py',\n 'lang_tr.py',\n 'lang_es.py'\n] ``` -------------------------------- ### Add Language Import in main.py Source: https://github.com/giantpinkrobots/flatsweep/blob/main/README.md This snippet shows how to add a new 'elif' statement to the main.py file to import a specific language module. It demonstrates the correct Python syntax and indentation required for this addition. ```python #...\nelif currentLanguage.startswith("es"):\n from flatsweep import lang_es as lang\nelse:\n from flatsweep import lang_en as lang ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.