Skip to content

Russian localization#59

Open
Xapitonov wants to merge 12 commits intoranobe-org:mainfrom
Xapitonov:main
Open

Russian localization#59
Xapitonov wants to merge 12 commits intoranobe-org:mainfrom
Xapitonov:main

Conversation

@Xapitonov
Copy link
Copy Markdown

Added Russian localization to the project.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to add a new layout file? you could extract the texts in string.xml and write the translation

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review!

fragment_search.xml is located in the layout-ru-rRU folder —
this is the standard way to localize layouts in Android
(text sizes, margins for Russian language).

Should I keep the separate layout or move only strings to strings.xml?

Copy link
Copy Markdown
Author

@Xapitonov Xapitonov Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translation
Line 36: app/src/main/res/layout-ru-rRU/fragment_search.xml
36.app:helperText="что вы хотите найти?"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original
Line 39: app/src/main/res/layout/fragment_search.xml
39.app:helperText="what are you looking for?"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This text can be moved to strings.xml; so no need for new layout file; as there are no layout changes. It's my bad to not have all text in strings.xml

<string name="search_helper_text">что вы хотите найти?</string>
@Xapitonov
Copy link
Copy Markdown
Author

Xapitonov commented Apr 14, 2026

Removed obsolete layout file:
app/src/main/res/layout-ru-rRU/fragment_search.xml

Extraced helper text from:
app/src/main/res/layout/fragment_search.xml

Line 39:
app:helperText="@string/search_helper_text"

Added localized string resource to:
app/src/main/res/values-ru-rRU/strings.xml

<string name="search_helper_text">что вы хотите найти?</string>

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