Browse Source

added transifex hint for translations

Andy Scherzinger 8 years ago
parent
commit
34c186bd8c

+ 8 - 0
res/layout/participate_layout.xml

@@ -160,6 +160,14 @@
                     android:paddingBottom="@dimen/standard_quarter_padding"
                     android:textAppearance="?android:attr/textAppearanceMedium"/>
 
+                <TextView
+                    android:id="@+id/participate_contribute_translate_text"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/participate_contribute_translate_text"
+                    android:paddingBottom="@dimen/standard_quarter_padding"
+                    android:textAppearance="?android:attr/textAppearanceMedium"/>
+
                 <TextView
                     android:id="@+id/participate_contribute_github_text"
                     android:layout_width="wrap_content"

+ 1 - 0
res/values/setup.xml

@@ -78,6 +78,7 @@
     <string name="fdroid_link" translatable="false">https://f-droid.org/repository/browse/?fdid=com.nextcloud.client</string>
     <string name="irc_weblink" translatable="false">http://webchat.freenode.net?channels=nextcloud-mobile</string>
     <string name="help_link" translatable="false">https://help.nextcloud.com/c/clients/android</string>
+    <string name="translation_link" translatable="false">https://www.transifex.com/nextcloud/nextcloud/android/</string>
     <string name="contributing_link" translatable="false">https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md</string>
     <string name="report_issue_link" translatable="false">https://github.com/nextcloud/android/issues</string>
 

+ 1 - 0
res/values/strings.xml

@@ -482,6 +482,7 @@
     <string name="participate_contribute_headline">Actively Contribute</string>
     <string name="participate_contribute_irc_text">Join the chat on IRC: &lt;a href="%1$s">#nextcloud-mobile&lt;/a></string>
     <string name="participate_contribute_forum_text">Help others on the &lt;a href="%1$s>forum&lt;/a></string>
+    <string name="participate_contribute_translate_text">Translate the app on &lt;a href="%1$s>transifex&lt;/a></string>
     <string name="participate_contribute_github_text">Contribute as a developer, see &lt;a href="https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md">CONTRIBUTING.md&lt;/a> for details</string>
     <plurals name="items_selected_count">
         <!--

+ 7 - 0
src/com/owncloud/android/ui/activity/ParticipateActivity.java

@@ -80,6 +80,13 @@ public class ParticipateActivity extends FileActivity {
                         getString(R.string.help_link)
                 )));
 
+        TextView contributeTranslationView = (TextView) findViewById(R.id.participate_contribute_translate_text);
+        contributeTranslationView.setMovementMethod(LinkMovementMethod.getInstance());
+        contributeTranslationView.setText(Html.fromHtml(
+                getString(R.string.participate_contribute_translate_text,
+                        getString(R.string.translation_link)
+                )));
+
         TextView contributeGithubView = (TextView) findViewById(R.id.participate_contribute_github_text);
         contributeGithubView.setMovementMethod(LinkMovementMethod.getInstance());
         contributeGithubView.setText(Html.fromHtml(getString(R.string.participate_contribute_github_text)));