Skip to content

Commit

Permalink
feat(help): enable crowdin translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy-Geenexus committed Aug 25, 2024
1 parent de3753c commit 9115ea3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ const val TAG_ITEM_HELP_TRANSLATE = TOP_LEVEL_PACKAGE_NAME + "ITEM_HELP_TRANSLAT
const val TAG_ITEM_FEEDBACK = TOP_LEVEL_PACKAGE_NAME + "ITEM_FEEDBACK"

const val URL_ISSUES = "https://github.com/Tommy-Geenexus/exif-eraser/issues"
const val URL_LOCALISATION = "https://tomgappdev.oneskyapp.com/collaboration/project?id=375350"
const val URL_LOCALISATION =
"https://crowdin.com/project/exif-eraser/invite?h=7814ed7d3215d8221577cc5b8aa661ee2190921"
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,10 @@ class HelpViewHolder(

fun bindItemHelpTranslate() {
binding.apply {
layoutPreference.isEnabled = false
layoutPreference.tag = TAG_ITEM_HELP_TRANSLATE
iconPreference.isEnabled = false
iconPreference.setImageResource(R.drawable.ic_translate)
titlePreference.isEnabled = false
titlePreference.setText(R.string.become_translator)
summaryPreference.isEnabled = false
summaryPreference.setText(R.string.onesky)
summaryPreference.setText(R.string.crowdin)
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<string name="clipboard_content_paste">Paste clipboard image</string>
<string name="clipboard_content_unsupported">Unsupported clipboard content</string>

<string name="crowdin" translatable="false">Crowdin</string>

<string name="default_display_name_suffix">Default display name suffix</string>
<string name="default_path_open">Default open path</string>
<string name="default_path_save">Default save path</string>
Expand Down Expand Up @@ -79,8 +81,6 @@

<string name="of">of</string>

<string name="onesky" translatable="false">OneSky</string>

<string name="path_save_choose">Choose save path</string>
<string name="path_save_custom">Custom save path</string>
<string name="path_save_default">Default save path</string>
Expand Down

0 comments on commit 9115ea3

Please sign in to comment.