Skip to content

Maintenance: Fix crowdin import#850

Merged
wslany merged 2 commits intodevelopfrom
fix-crowdin-import
Mar 25, 2021
Merged

Maintenance: Fix crowdin import#850
wslany merged 2 commits intodevelopfrom
fix-crowdin-import

Conversation

@wslany
Copy link
Member

@wslany wslany commented Mar 25, 2021

No description provided.

wslany added 2 commits March 25, 2021 08:32
Deleting incompatible Paintroid/src/main/res/values-kab-rKAB/string.xml (Berber translation) --- error was:
```
08:02:50  > /home/catroid/jenkins_slave/workspace/Paintroid_develop/Paintroid/src/main/res/values-kab-rKAB: Error: Invalid resource directory name 
```
Incorrect combination of tw (Twi) with TW (Taiwan) translation resource --- lint warning:
```
Suspicious Language/Region Combination Suspicious language and region combination tw (Twi) with TW (Taiwan): language tw is usually paired with: GH (Ghana) Android uses the letter codes ISO 639-1 for languages, and the letter codes ISO 3166-1 for the region codes. In many cases, the language code and the country where the language is spoken is the same, but it is also often not the case. For example, while 'se' refers to Sweden, where Swedish is spoken, the language code for Swedish is **not** `se` (which refers to the Northern Sami language), the language code is `sv`. And similarly the region code for `sv` is El Salvador. This lint check looks for suspicious language and region combinations, to help catch cases where you've accidentally used the wrong language or region code. Lint knows about the most common regions where a language is spoken, and if a folder combination is not one of these, it is flagged as suspicious. Note however that it may not be an error: you can theoretically have speakers of any language in any region and want to target that with your resources, so this check is aimed at tracking down likely mistakes, not to enforce a specific set of region and language combinations.
```
@wslany wslany merged commit cb71e33 into develop Mar 25, 2021
@wslany wslany deleted the fix-crowdin-import branch March 25, 2021 07:52
harsh-hash pushed a commit to harsh-hash/Paintroid that referenced this pull request Apr 28, 2021
* Fix crowdin import

Deleting incompatible Paintroid/src/main/res/values-kab-rKAB/string.xml (Berber translation) --- error was:

/home/catroid/jenkins_slave/workspace/Paintroid_develop/Paintroid/src/main/res/values-kab-rKAB: Error: Invalid resource directory name 


* Delete combination tw (Twi) with TW (Taiwan)

Incorrect combination of tw (Twi) with TW (Taiwan) translation resource --- lint warning:

Suspicious Language/Region Combination Suspicious language and region combination tw (Twi) with TW (Taiwan): language tw is usually paired with: GH (Ghana) Android uses the letter codes ISO 639-1 for languages, and the letter codes ISO 3166-1 for the region codes. In many cases, the language code and the country where the language is spoken is the same, but it is also often not the case. For example, while 'se' refers to Sweden, where Swedish is spoken, the language code for Swedish is **not** `se` (which refers to the Northern Sami language), the language code is `sv`. And similarly the region code for `sv` is El Salvador. This lint check looks for suspicious language and region combinations, to help catch cases where you've accidentally used the wrong language or region code. Lint knows about the most common regions where a language is spoken, and if a folder combination is not one of these, it is flagged as suspicious. Note however that it may not be an error: you can theoretically have speakers of any language in any region and want to target that with your resources, so this check is aimed at tracking down likely mistakes, not to enforce a specific set of region and language combinations.
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

Successfully merging this pull request may close these issues.

1 participant