It seems like you want to sync just a single source file and its translations. So you should go with the “file” filter type. This is the YAML configuration to achieve this:
@rigas@Demartini
I have the same problem. I am struggle with the YAML configuration all day today and can make it work. Like Demartini above, i follow all the instructions in GitHub and in transifex but i can’t config properly the YAML file for the sync to work.
I am the creator of the Bello skin for Kodi (an Open Source Home Theater Software) and i am maintaining my code on GitHub, using Transifex for translations.
My translations files are with extension .po and directory structure like this one here and this is the YAML file that i am using:
filters:
- filter_type: file
source_file: language/resource.language.en_gb/strings.po
file_format: PO
source_language: en
translation_files_expression: 'language/<lang>/'
I want my 100% translated files to sync with my github in the same directory structure and naming.
Anyone can help in what am i doing wrong?
Thanks
Nessus
EDITED: Whatever i do i get this in the GitHub Syncing Status window…
Can you try again with the following configuration YAML?
filters:
- filter_type: file
source_file: language/resource.language.en_gb/strings.po
file_format: PO
source_language: en
translation_files_expression: 'language/resource.language.<lang>/'
The </lang> placeholder would match the whole resource.language.en_au in your case. This match will be used as the language code when uploading translations to Transifex. Of course, this string is not a valid language code, you only want to use the en_au part to be used as your language code. Give it a try!
Update: This is the project I want to integration, I don’t know what type of filter_type should I use, and I want to translate the project to Chinese(Simplified).
I’m a newbie of Git and GitHub, I don’t know how to configure a YAML file. Can someone help me?
@Nessus85100 thank you for the screenshot. There seems to be a bug with language_mapping. We are currently investigating and will start working on a fix soon. I’ll let you know as soon as it is released.
filter_type: dir
file_format: GITHUBMARKDOWN
source_file_extension: md
source_file_extension: html
source_language: en
source_file_dir: /md-pages/en/
translation_files_expression: '/md-pages/< lang > ’
(make sure you don’t have the blanks between around the tag “lang”)
nested sub-directories with the main language in the root and sub-languages in some subfolders (as common on websites) not supported