summaryrefslogtreecommitdiffstats
path: root/core/string/translation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-261-2/+4
|\
| * Make loading translations from threads safePedro J. Estébanez2024-11-221-2/+4
| |
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* StringName: Fix empty hashrune-scape2024-09-091-1/+0
| | | | +Fixed compat hashes
* Split TranslationServer into its own fileHaoyu Qiu2024-08-151-915/+2
|
* Remove editor pseudolocalization debug featureRémi Verschelde2024-06-241-6/+2
| | | | | | | | | | | | We've seen multiple users enable it by mistake and get utterly confused, reporting as a bug that the interface text is garbled. On the other hand we haven't really seen much use of the feature by editor UI developers, so we can likely simply remove it. If there's a need eventually, we can re-add it as a command line option (which is also better than an editor setting as one would typically want to toggle it during development).
* Rename internal is_ascii_char to is_ascii_alphabet_charAaron Franke2024-04-201-1/+1
|
* Add context support for editor property name i18nHaoyu Qiu2024-03-311-2/+2
|
* Merge pull request #87191 from Mickeon/autocompletion-TranslationServerRémi Verschelde2024-03-011-0/+23
|\ | | | | | | Add autocompletion for TranslationServer
| * Add autocompletion for TranslationServerMicky2024-02-291-0/+23
| |
* | Add option to add built-in strings in the POT generationMichael Alexsander2024-02-281-5/+33
| |
* | Fix some DEFVALs to use the right typeRaul Santos2024-02-231-7/+8
|/ | | | | - Use `StringName()` in DEFVAL for StringNames. - Use `Variant()` in DEFVAL for Variants.
* [Pseudolocalization] Prevent out of bounds reads.bruvzg2024-01-051-5/+5
|
* Do not reload resources and send notification if locale is not changed.bruvzg2023-12-051-1/+5
|
* Fix remapped font reloading on locale change.bruvzg2023-11-131-4/+6
|
* Support loading of translations on threadsPedro J. Estébanez2023-06-291-0/+9
|
* Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-051-12/+5
|\ | | | | Use `String.repeat()` to optimize several String methods
| * Use String.repeat() in more placesVolTer2023-05-011-12/+5
| |
* | Improve layout direction/locale automatic selection.bruvzg2023-02-221-1/+19
| |
* | Prepare for moving editor and classref translations to godot-editor-l10n repoHaoyu Qiu2023-02-071-0/+14
|/ | | | | | | | | - Separate editor interface and property translations. - Add property translation in TranslationServer. - The split and merge of the POT/PO/Makefiles and extract scripts is done directly in godot-editor-l10n, the files will be removed in the next commit. - Remove the hardcoded "to_include" lists from the SCsub, we'll only commit the files which are ready to inclue.
* Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde2023-01-061-1/+1
|\ | | | | Add PropertyInfo overload for GLOBAL_DEF
| * Add PropertyInfo overload for GLOBAL_DEFkobewi2022-12-111-1/+1
| |
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
|/ | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* [Font] Add an import option to pre-render all glyphs required for the ↵bruvzg2022-11-101-0/+13
| | | | translation.
* Merge pull request #67931 from bruvzg/locale_no_defRémi Verschelde2022-10-311-17/+23
|\ | | | | | | Do not auto add default script and country codes to the locale.
| * Do not auto add default script and country codes to the locale.bruvzg2022-10-271-17/+23
| |
* | Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
|/
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-52/+49
| | | | change warnings=all to use /W4.
* Replace Array return types with TypedArray 3kobewi2022-08-241-4/+4
|
* Add tests for empty/unnamed arguments to ClassDB, Variant, GDScriptYuri Sizov2022-08-081-1/+1
|
* Use range iterators for RBSet in most casesAaron Record2022-05-191-6/+6
|
* Replace most uses of Map by HashMapreduz2022-05-161-17/+17
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Fix some issues found by cppcheck.bruvzg2022-04-061-2/+2
|
* [Editor] Fix "en" editor translation detection.bruvzg2022-02-181-2/+6
|
* Use EditorFileDialog instead of FileDialog in the project managerHendrik Brucker2022-02-121-1/+1
|
* [GDExtension] Add binds for missing methods, operators, and constants ↵bruvzg2022-02-081-0/+1
| | | | required for GDExtension TextServer implementation.
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-15/+7
|
* Fix translation with multiple sources for the same language.bruvzg2022-01-241-8/+8
| | | | | Remove unnecessary locale length checks. Add "C" -> "en" locale remap.
* Fix locale always selecting translation instead of "en", when no match found.bruvzg2022-01-191-2/+2
|
* Improve locale detection.bruvzg2022-01-181-929/+298
| | | | | Use separate language, script and country lists. Add locale selection dialog and property hint.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Added check to get_all_locales to avoid adding duplicate locales to arrayraphaelazev2021-12-101-1/+4
|
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-031-1/+1
| | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-281-2/+2
| | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* Merge pull request #53225 from aaronfranke/c-localeRémi Verschelde2021-10-051-3/+6
|\
| * Add locale rename for the "C" localeAaron Franke2021-09-291-3/+6
| |
* | GDScript completion: Handle quote style ad-hoc to remove editor dependencyRémi Verschelde2021-10-041-1/+0
| | | | | | | | | | | | | | | | `core` and `scene` shouldn't depend on `editor`, so they can't query this style setting in `get_argument_options`. But we can handle it after the fact in GDScript's completion code. Also cleans up a couple extra unused invalid includes in `core`.
* | Use range iterators for `Map`Lightning_A2021-09-301-6/+6
|/