Open nguillaumin opened 12 years ago
This is an interesting use-case.
We will keep in it mind for the next version.
:+1:
having this problem for small now:
➜ gobandroid git:(master) ✗ tx push -t
Pushing translations for resource gobandroid.stringsxml:
Pushing 'zh_CN' translations (file: android/src/main/res/values-zh-rCN/strings.xml)
Pushing 'ru' translations (file: android/src/main/res/values-ru/strings.xml)
Pushing 'fr' translations (file: android/src/main/res/values-fr/strings.xml)
Pushing 'ca' translations (file: android/src/main/res/values-ca/strings.xml)
Pushing 'de' translations (file: android/src/main/res/values-de/strings.xml)
Pushing 'sv' translations (file: android/src/main/res/values-sv/strings.xml)
Pushing 'it' translations (file: android/src/main/res/values-it/strings.xml)
Pushing 'pl' translations (file: android/src/main/res/values-pl/strings.xml)
Pushing 'small' translations (file: android/src/main/res/values-small/strings.xml)
Exception: Not Found
Hi,
Unless I've missed something I can't find a way to ignore some files or language codes.
My use case is translating Android resources. In the Android world resources are stored in different folders, one per language code, for example:
res/values/strings.xml
(Source file)res/values-fr/strings.xml
res/values-ja/strings.xml
That works great with the file filter system since you can use
res/values-<lang>/strings.xml
.However Android also uses this suffix system for non language specifiers such as resources specifics to a SDK version (
res/values-v11/strings.xml
). When pushing translation this causes some errors (which hopefully can be--skip
ed.).Another more generic use case is for some resources that are copied from other ones. For example in Norwegian the
no
resource is identical tonb
, so in my build script I copy thevalues-nb
folder tovalues-no
. I'd like to ignoreno
when pushing translations.Ideally a new setting in
.tx/config
would do, likeignore = no,v11
.Cheers,
Nico