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

Russiano #2 #319

Merged
merged 5 commits into from
May 1, 2023
Merged

Russiano #2 #319

merged 5 commits into from
May 1, 2023

Conversation

bogachenko
Copy link
Contributor

Tell me, is it possible to combine these 2 lines with this 1 argument?

Now
<string name="output_dir_bottom_sheet_filename_template">Шаблон имени файла</string>
<string name="filename_template_dialog_title">Шаблон имени файла</string>

After
<string name="output_dir_bottom_sheet_filename_template">Шаблон имени файла</string>
<string name="filename_template_dialog_title">@string/output_dir_bottom_sheet_filename_template</string>

Or is it not possible to do this for the title?

@chenxiaolong
Copy link
Owner

After
<string name="output_dir_bottom_sheet_filename_template">Шаблон имени файла</string>
<string name="filename_template_dialog_title">@string/output_dir_bottom_sheet_filename_template</string>

Or is it not possible to do this for the title?

Yes, that should be perfectly fine.

@chenxiaolong
Copy link
Owner

It looks like commit 13b51f3 reformatted the file. I have 2 small concerns about this:

  • The indentation changed from 4 spaces to 1 tab character. Please leave it at 4 spaces to match the rest of the project.
  • The strings that contain <annotation> got split into multiple lines. Please avoid doing that because when the ending </string> is on its own line, it results in the translation having an extra space at the end.

@bogachenko
Copy link
Contributor Author

The indentation changed from 4 spaces to 1 tab character. Please leave it at 4 spaces to match the rest of the project.

I don't want to argue about tabs versus spaces (this is your repository and the rules are yours, and for the machine, the markup between these two positions is not particularly important), but don't you think tabs are better and should be entered for other languages? 1 tab (8 spaces) this is 1 kb, while 1 space is 1 kb (respectively, this is 4 kb for you).

eg. your ENG language file has the size: 6.68 KB, but if you remove the spaces and leave the tabs, you can compress the file to a size of 6.45 KB.

In any case, you have the last word, should I give it back?

@chenxiaolong
Copy link
Owner

I can see that point of view, though I'd still prefer 4 spaces for consistency. (Once it's compiled into the .apk, there's no longer a size difference. It gets converted into a binary XML format that has no indentation.)

@bogachenko
Copy link
Contributor Author

Brought it back.

@chenxiaolong chenxiaolong merged commit 6cac67e into chenxiaolong:master May 1, 2023
chenxiaolong added a commit that referenced this pull request May 1, 2023
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
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.

2 participants