Merge branch 'translation-tool' of 6543/GitNex into master
This commit is contained in:
commit
b32d291554
@ -24,6 +24,7 @@ In case you want to submit a bug report, please provide as much details as possi
|
|||||||
## Translation
|
## Translation
|
||||||
Help us translate GitNex to your native language.
|
Help us translate GitNex to your native language.
|
||||||
|
|
||||||
Take a look [here](https://gitea.com/mmarif/GitNex/src/branch/master/app/src/main/res/values/strings.xml) for strings, please ignore the lines with `translatable="false"`. It is recommended to create a Pull Request with your changes.
|
We use [Crowdin](https://crowdin.com/project/gitnex) for translation.
|
||||||
|
If your language is not listed, please request [here](https://gitea.com/mmarif/GitNex/issues) to add it to the project.
|
||||||
|
|
||||||
Check the structure of other languages for example [French](https://gitea.com/mmarif/GitNex/src/branch/master/app/src/main/res/values-fr/strings.xml).
|
**Link: https://crowdin.com/project/GitNex**
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||||
[](https://gitea.com/mmarif/GitNex/releases)
|
[](https://gitea.com/mmarif/GitNex/releases)
|
||||||
|
[](https://crowdin.com/project/gitnex)
|
||||||
|
|
||||||
[<img alt="Become a Patroen" src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" height="40"/>](https://www.patreon.com/mmarif)
|
[<img alt="Become a Patroen" src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" height="40"/>](https://www.patreon.com/mmarif)
|
||||||
[<img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg" height="40"/>](https://liberapay.com/mmarif/donate)
|
[<img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg" height="40"/>](https://liberapay.com/mmarif/donate)
|
||||||
|
@ -49,6 +49,7 @@ public class AboutFragment extends Fragment {
|
|||||||
final TextView appVerBuild;
|
final TextView appVerBuild;
|
||||||
final TextView donationLink;
|
final TextView donationLink;
|
||||||
final TextView donationLinkPatreon;
|
final TextView donationLinkPatreon;
|
||||||
|
final TextView translateLink;
|
||||||
final TextView creditsButton;
|
final TextView creditsButton;
|
||||||
final TextView sponsorsButton;
|
final TextView sponsorsButton;
|
||||||
final TextView appWebsite;
|
final TextView appWebsite;
|
||||||
@ -64,6 +65,7 @@ public class AboutFragment extends Fragment {
|
|||||||
creditsButton = v.findViewById(R.id.creditsButton);
|
creditsButton = v.findViewById(R.id.creditsButton);
|
||||||
donationLink = v.findViewById(R.id.donationLink);
|
donationLink = v.findViewById(R.id.donationLink);
|
||||||
donationLinkPatreon = v.findViewById(R.id.donationLinkPatreon);
|
donationLinkPatreon = v.findViewById(R.id.donationLinkPatreon);
|
||||||
|
translateLink = v.findViewById(R.id.translateLink);
|
||||||
sponsorsButton = v.findViewById(R.id.sponsorsButton);
|
sponsorsButton = v.findViewById(R.id.sponsorsButton);
|
||||||
appWebsite = v.findViewById(R.id.appWebsite);
|
appWebsite = v.findViewById(R.id.appWebsite);
|
||||||
appRepo = v.findViewById(R.id.appRepo);
|
appRepo = v.findViewById(R.id.appRepo);
|
||||||
@ -90,6 +92,16 @@ public class AboutFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
translateLink.setOnClickListener(new View.OnClickListener() {
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent intent = new Intent();
|
||||||
|
intent.setAction(Intent.ACTION_VIEW);
|
||||||
|
intent.addCategory(Intent.CATEGORY_BROWSABLE);
|
||||||
|
intent.setData(Uri.parse(getResources().getString(R.string.corwdinLink)));
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
appWebsite.setOnClickListener(new View.OnClickListener() {
|
appWebsite.setOnClickListener(new View.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
|
@ -105,8 +105,21 @@
|
|||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:autoLink="web"
|
android:autoLink="web"
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
|
android:layout_marginBottom="10dp"
|
||||||
android:textColorLink="@color/lightBlue" />
|
android:textColorLink="@color/lightBlue" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/translateLink"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:autoLink="web"
|
||||||
|
android:gravity="start"
|
||||||
|
android:text="@string/translateText"
|
||||||
|
android:textColor="@color/lightBlue"
|
||||||
|
android:textColorLink="@color/lightBlue"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<string name="supportLinkPatreon" translatable="false">https://www.patreon.com/mmarif</string>
|
<string name="supportLinkPatreon" translatable="false">https://www.patreon.com/mmarif</string>
|
||||||
<string name="appVerBuild" translatable="false">%1$s / build %2$d</string>
|
<string name="appVerBuild" translatable="false">%1$s / build %2$d</string>
|
||||||
<string name="appDesc" translatable="false">GitNex is a free, open-source Android client for Git repository management tool Gitea. GitNex is Licensed under GPLv3.\n\nThanks to all the contributors and sponsors for your generous work and donations.</string>
|
<string name="appDesc" translatable="false">GitNex is a free, open-source Android client for Git repository management tool Gitea. GitNex is Licensed under GPLv3.\n\nThanks to all the contributors and sponsors for your generous work and donations.</string>
|
||||||
|
<string name="corwdinLink" translatable="false">https://crowdin.com/project/gitnex</string>
|
||||||
<!-- These strings does not need translations -->
|
<!-- These strings does not need translations -->
|
||||||
|
|
||||||
<!-- links text -->
|
<!-- links text -->
|
||||||
@ -493,6 +494,7 @@
|
|||||||
<string name="locationText">Location</string>
|
<string name="locationText">Location</string>
|
||||||
<string name="characters255Limit">Max 255 characters</string>
|
<string name="characters255Limit">Max 255 characters</string>
|
||||||
<string name="emptyFields">All fields are required</string>
|
<string name="emptyFields">All fields are required</string>
|
||||||
|
<string name="translateText">Translate GitNex with Crowdin</string>
|
||||||
<!-- generic copy -->
|
<!-- generic copy -->
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user