Merge branch 'feature/language-selector'
This commit is contained in:
commit
32a2c66c34
|
@ -683,7 +683,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
||||||
languageMenu.add(0, allLanguages.indexOf(l), Menu.NONE, getActivity().getString(R.string.sk_language_name, l.getDefaultName(), l.getLanguageName()));
|
languageMenu.add(0, allLanguages.indexOf(l), Menu.NONE, getActivity().getString(R.string.sk_language_name, l.getDefaultName(), l.getLanguageName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
SubMenu allLanguagesMenu = languageMenu.addSubMenu(R.string.sk_all_languages);
|
SubMenu allLanguagesMenu = languageMenu.addSubMenu(R.string.sk_available_languages);
|
||||||
for (int i = 0; i < allLanguages.size(); i++) {
|
for (int i = 0; i < allLanguages.size(); i++) {
|
||||||
MastodonLanguage l = allLanguages.get(i);
|
MastodonLanguage l = allLanguages.get(i);
|
||||||
allLanguagesMenu.add(0, i, Menu.NONE, getActivity().getString(R.string.sk_language_name, l.getDefaultName(), l.getLanguageName()));
|
allLanguagesMenu.add(0, i, Menu.NONE, getActivity().getString(R.string.sk_language_name, l.getDefaultName(), l.getLanguageName()));
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<string name="sk_translate_show_original">Show original</string>
|
<string name="sk_translate_show_original">Show original</string>
|
||||||
<string name="sk_translated_using">Translated using %s</string>
|
<string name="sk_translated_using">Translated using %s</string>
|
||||||
<string name="sk_post_language">Language: %s</string>
|
<string name="sk_post_language">Language: %s</string>
|
||||||
<string name="sk_all_languages">All languages</string>
|
<string name="sk_available_languages">Available languages</string>
|
||||||
<string name="sk_language_name">%s (%s)</string>
|
<string name="sk_language_name">%s (%s)</string>
|
||||||
<string name="sk_clear_recent_languages">Clear recent languages</string>
|
<string name="sk_clear_recent_languages">Clear recent languages</string>
|
||||||
<string name="sk_confirm_clear_recent_languages">Are you sure you want to clear your recently used languages?</string>
|
<string name="sk_confirm_clear_recent_languages">Are you sure you want to clear your recently used languages?</string>
|
||||||
|
|
Loading…
Reference in New Issue