Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include specific .txt-file in transifex-bot? #199

Closed
stefan-niedermann opened this issue Jan 27, 2020 · 5 comments
Closed

How to include specific .txt-file in transifex-bot? #199

stefan-niedermann opened this issue Jan 27, 2020 · 5 comments
Labels

Comments

@stefan-niedermann
Copy link
Member

stefan-niedermann commented Jan 27, 2020

Hey @MorrisJobke,

here another request: I want to add some kind of description about how to use markdown for the Notes app (nextcloud/notes-android#116).

I could store the text in the strings.xml-file and it would be translated by transifex. But i do not really want to do that for clarity reasons. Ideal for me was if i could simply place a plain .md- or .txt-file inside of the android assets-folder (similar to #198).

  • Would this kind of file be respected by the transifex-bot yet?
  • If not, can you add support for something like this? Or do you have any other idea about how / where to store such a property?

cc @tobiasKaminsky

@tobiasKaminsky
Copy link
Member

We could extend generate_metadata.py to also translate this file, but then it is just like everything else in Transifex…

@stefan-niedermann
Copy link
Member Author

After some research i think the raw folder (which is localized analog to strings) is the "android-way" to put localized .txt-files in an android app.

but then it is just like everything else in Transifex…

But this is exactly what i want to achieve - everything in raw should go to transifex, get translated there and getting pushed back to my repository.

As far as i understood, the generate-metadata script is only processing the already translated files which are yield from transifex.

So what i need in the first place, would be that raw-values are pushed to transifex in the first place.

@tobiasKaminsky
Copy link
Member

So what i need in the first place, would be that raw-values are pushed to transifex in the first place.

This is possible, but as far as I know, it it would be for each file a new resource within nextcloud
(next to android-notes)

So something like

  • androidNotes
  • androidNotes-RawFile1
  • androidNotes-RawFile2

@stefan-niedermann
Copy link
Member Author

stefan-niedermann commented Jun 7, 2020

Okay, so now the topic is getting serious. I have a big text file in the raw directory of the Notes app which needs to get translated.

@tobiasKaminsky your proposal is fine for me and i don't expect further files to follow. If this is fine for you, i would like to ask you for some guidance how to set up this kind of job.

Of course i am always happy to hear alternative solutions. 🙂

@stefan-niedermann
Copy link
Member Author

I solved it by moving all the stuff into my strings.xml...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants