Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Expand i18n coverage to all relevant strings (#1370)
* Bring Go code formatting into compliance * Expand i18n coverage to all relevant strings This provides internationalization of the strings of the Arduino CLI code base. It will now be possible to completely translate the primary Arduino CLI user interface. We decided that the log messages would be excluded from the internationalization scope for now. The reason is that the addition of these strings would significantly increase the workload on the community translators, while generally being of less visibility and/or importance to the users. Even though on an individual basis there are surely specific log messages of higher importance than specific non-log strings that were internationalized, the log/non-log dichotomy provided an objective criterion for determining which strings were in scope for this initial effort. Perhaps we will expand the i18n coverage at some time in the future after there has been good progress on the initial translation effort. Some techniques were employed to facilitate translation: - Code references were moved out of strings in cases where a translator might mistake them for prose and translate them. - Indices were added to printf verbs when multiple were present in a string. This allows the translator to easily insert them at the appropriate location in the sentence structure without being required to understand the Go printf syntax and without being restricted to their relative order in the English language source string. Co-authored-by: Silvano Cerza <[email protected]>
- Loading branch information
Showing
with
4,376 additions
and 1,026 deletions.
- +3 −3 arduino/builder/compilation_database.go
- +15 −11 arduino/builder/sketch.go
- +4 −4 arduino/cores/board.go
- +3 −0 arduino/cores/cores.go
- +3 −3 arduino/cores/fqbn.go
- +4 −1 arduino/cores/packageindex/index.go
- +7 −7 arduino/cores/packagemanager/download.go
- +10 −10 arduino/cores/packagemanager/install_uninstall.go
- +26 −26 arduino/cores/packagemanager/loader.go
- +18 −16 arduino/cores/packagemanager/package_manager.go
- +11 −11 arduino/cores/status.go
- +19 −16 arduino/discovery/discovery.go
- +5 −2 arduino/libraries/libraries.go
- +2 −2 arduino/libraries/libraries_layout.go
- +2 −2 arduino/libraries/libraries_location.go
- +5 −2 arduino/libraries/librariesindex/json.go
- +16 −16 arduino/libraries/librariesmanager/install.go
- +8 −5 arduino/libraries/librariesmanager/librariesmanager.go
- +4 −1 arduino/libraries/librariesresolver/cpp.go
- +3 −3 arduino/libraries/loader.go
- +4 −1 arduino/monitors/serial.go
- +19 −16 arduino/resources/checksums.go
- +4 −4 arduino/resources/helpers.go
- +12 −12 arduino/resources/install.go
- +6 −3 arduino/security/signatures.go
- +8 −4 arduino/serialutils/serialutils.go
- +13 −10 arduino/sketch/sketch.go
- +7 −6 cli/board/attach.go
- +4 −4 cli/board/board.go
- +4 −4 cli/board/details.go
- +13 −13 cli/board/list.go
- +9 −9 cli/board/listall.go
- +9 −9 cli/board/search.go
- +11 −9 cli/burnbootloader/burnbootloader.go
- +6 −3 cli/cache/cache.go
- +3 −3 cli/cache/clean.go
- +14 −14 cli/cli.go
- +35 −32 cli/compile/compile.go
- +6 −4 cli/completion/completion.go
- +4 −4 cli/config/add.go
- +4 −1 cli/config/config.go
- +4 −4 cli/config/delete.go
- +3 −3 cli/config/dump.go
- +14 −13 cli/config/init.go
- +4 −4 cli/config/remove.go
- +5 −5 cli/config/set.go
- +1 −1 cli/config/validate.go
- +5 −2 cli/core/core.go
- +8 −7 cli/core/download.go
- +11 −10 cli/core/install.go
- +7 −7 cli/core/list.go
- +11 −11 cli/core/search.go
- +7 −6 cli/core/uninstall.go
- +5 −5 cli/core/update_index.go
- +12 −11 cli/core/upgrade.go
- +11 −8 cli/daemon/daemon.go
- +22 −20 cli/debug/debug.go
- +4 −1 cli/feedback/feedback.go
- +9 −5 cli/generatedocs/generatedocs.go
- +6 −6 cli/globals/args.go
- +2 −0 cli/globals/globals.go
- +5 −2 cli/instance/instance.go
- +2 −2 cli/lib/args.go
- +10 −10 cli/lib/check_deps.go
- +8 −7 cli/lib/download.go
- +7 −7 cli/lib/examples.go
- +15 −15 cli/lib/install.go
- +5 −2 cli/lib/lib.go
- +15 −13 cli/lib/list.go
- +23 −23 cli/lib/search.go
- +6 −5 cli/lib/uninstall.go
- +5 −5 cli/lib/update_index.go
- +4 −6 cli/lib/upgrade.go
- +9 −6 cli/outdated/outdated.go
- +8 −4 cli/output/rpc_progress.go
- +7 −6 cli/sketch/archive.go
- +6 −6 cli/sketch/new.go
- +5 −2 cli/sketch/sketch.go
- +13 −10 cli/update/update.go
- +6 −3 cli/upgrade/upgrade.go
- +17 −14 cli/upload/upload.go
- +5 −2 cli/version/version.go
- +11 −8 commands/board/attach.go
- +3 −3 commands/board/details.go
- +11 −11 commands/board/list.go
- +1 −1 commands/board/listall.go
- +1 −1 commands/board/search.go
- +4 −4 commands/bundled_tools.go
- +3 −0 commands/bundled_tools_ctags.go
- +8 −8 commands/bundled_tools_serial_discovery.go
- +18 −15 commands/compile/compile.go
- +8 −5 commands/core/download.go
- +16 −16 commands/core/install.go
- +2 −2 commands/core/list.go
- +1 −1 commands/core/search.go
- +8 −8 commands/core/uninstall.go
- +6 −6 commands/core/upgrade.go
- +4 −1 commands/daemon/daemon.go
- +1 −1 commands/daemon/debug.go
- +2 −2 commands/daemon/monitor.go
- +1 −1 commands/daemon/settings.go
- +7 −4 commands/debug/debug.go
- +9 −9 commands/debug/debug_info.go
- +65 −65 commands/instances.go
- +5 −2 commands/lib/download.go
- +12 −12 commands/lib/install.go
- +5 −5 commands/lib/list.go
- +3 −3 commands/lib/resolve_deps.go
- +1 −1 commands/lib/search.go
- +2 −2 commands/lib/uninstall.go
- +1 −1 commands/lib/upgrade.go
- +2 −2 commands/lib/utils.go
- +9 −6 commands/sketch/archive.go
- +3 −3 commands/upload/programmers_list.go
- +40 −37 commands/upload/upload.go
- +10 −7 configuration/configuration.go
- +4 −0 executils/executils.go
- +2 −2 executils/output.go
- +1 −1 executils/process.go
- +4 −0 httpclient/httpclient.go
- +1 −2 httpclient/httpclient_config.go
- +3,241 −69 i18n/data/en.po
- +7 −7 i18n/rice-box.go
- +7 −5 inventory/inventory.go
- +9 −6 legacy/builder/builder.go
- +17 −14 legacy/builder/builder_utils/utils.go
- +57 −47 legacy/builder/constants/constants.go
- +1 −1 legacy/builder/container_find_includes.go
- +1 −1 legacy/builder/container_setup.go
- +1 −1 legacy/builder/ctags_runner.go
- +6 −3 legacy/builder/phases/core_builder.go
- +7 −7 legacy/builder/phases/libraries_builder.go
- +1 −1 legacy/builder/phases/linker.go
- +9 −8 legacy/builder/phases/sizer.go
- +1 −1 legacy/builder/preprocess_sketch.go
- +1 −1 legacy/builder/recipe_runner.go
- +2 −2 legacy/builder/resolve_library.go
- +1 −1 legacy/builder/target_board_resolver.go
- +1 −1 legacy/builder/types/context.go
- +3 −0 legacy/builder/types/types.go
- +5 −2 legacy/builder/utils/utils.go
- +4 −4 legacy/builder/wipeout_build_path_if_build_options_changed.go
- +4 −1 version/version.go
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.