Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LonamiWebs/Stringlate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.10b
Choose a base ref
...
head repository: LonamiWebs/Stringlate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 315 changed files with 15,503 additions and 5,705 deletions.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#### General information

* **App version:**
* **System:**

#### Description


#### Log

<!--
Look for already reported issues before posting!
Also take a look at documentation and wiki, or write in the project chat.
App version: The version of the app installed and the installation source. Example: v0.3.5 F-Droid
Please keep in mind that only the latest downloadable version is supported and that there are no backports to older versions.
System: Information about where the app is running. Give all details you know, but at least the Android OS version.
Example: Android 8.0.1, Nexus 5, LineageOS
Description:
What this is about, what happens and what is expected to happen. What needs to be done for it to happen.
If a crash is happening a log is needed. Screenshots or demonstration videos are always helpful too.
About logging:
https://gsantner.net/android-contribution-guide/?packageid=io.github.lonamiwebs.stringlate&name=Stringlate&web=https://github.com/lonamiwebs/stringlate#logcat
-->
27 changes: 27 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@






<!--
Hello, and thanks for contributing!

Please always do auto-reformat on code before creating a PR.
In Android-Studio do a right-click on java->Reformat and check the first two options.

After creating the PR please wait patiently till somebody from the team has time to give a review.
The top-priority requirement for this to get merged is, that building/tests don't fail.
If theres an continious integration system integrated in this project, you should see a colored checkmark in the PR window which tells the status.

## Contributors document
Add yourself! When adding your information to the `CONTRIBUTORS.md` file, please use the following format:

Schema: **[Name](Reference)**<br/>~° Text
Where:
* Name: username, first/lastname
* Reference: E-Mail, Webpage
* Text: Information about / kind of contribution
Example:
* **[Nice Guy](http://niceguy.web)**<br/>~° German localization
-->
39 changes: 25 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Stringlate

## Deprecation Notice

**This application is no longer maintained**. Please
[read the full deprecation notice](https://lonamiwebs.github.io/stringlate/)
before using the application.

*Help translating FOSS applications.*

[![Translate - with Stringlate](https://img.shields.io/badge/stringlate-translate-green.svg)](https://lonamiwebs.github.io/stringlate/translate?git=https%3A%2F%2Fgithub.com%2FLonamiWebs%2Fstringlate.git&name=Stringlate&web=https%3A%2F%2Fgithub.com%2FLonamiWebs%2FStringlate)

[<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="60">](https://f-droid.org/app/io.github.lonamiwebs.stringlate)

## Description
@@ -9,17 +18,17 @@ applications in an easy way. Perhaps your family doesn't know enough English
and you might want to translate a FOSS application for them, then this is
application is the right way to go.

Its purpose is **fetching** a GitHub repository containing the **source code**
for an Android application, and once the `strings.xml` files in it are
Its purpose is **fetching** a Git repository containing the **source code**
for an Android application, and once the string resources (`strings.xml` files) in it are
downloaded, you'll be able to **translate it** whenever you want.

Some applications have a large amount of `strings` waiting to be translated.
This is the reason why it's not a desktop application, so it could be done
anywhere (*no internet connection is required* once the `strings` are saved).
Once you're done, create a *Gist*, **export** the file to the SD card or simply
copy its contents to the clipboard.
anywhere (*no internet connection is required* once the `strings` are downloaded).
Once you're done,you can **export** the translations to the SD card, share it to any service,
send it via email, create a GitHub Gist or simply copy its contents to the clipboard.

Of course, once you have the final `strings.xml`, drop the author an issue and
Of course, once you have completed the translation, drop the author a Pull-Request and
let them know you've translated their application. They'll be really happy!

## Help
@@ -39,19 +48,21 @@ This application has not yet been tested on pre-Lollipop devices and it
this is the case, please let me know, or create a new pull request with a fix.

## Screenshots
![Screenshot 1](./resources/screenshots/s1.png)
![Screenshot 2](./resources/screenshots/s2.png)
![Screenshot 3](./resources/screenshots/s3.png)
![Screenshot 4](./resources/screenshots/s4.png)
![Screenshot 4](./resources/screenshots/s5.png)
![Screenshot 1](https://github.com/XyLoNaMiyX/Stringlate-metadata/raw/HEAD/en-GB/phoneScreenshots/01.png)
![Screenshot 2](https://github.com/XyLoNaMiyX/Stringlate-metadata/raw/HEAD/en-GB/phoneScreenshots/02.png)
![Screenshot 3](https://github.com/XyLoNaMiyX/Stringlate-metadata/raw/HEAD/en-GB/phoneScreenshots/03.png)
![Screenshot 4](https://github.com/XyLoNaMiyX/Stringlate-metadata/raw/HEAD/en-GB/phoneScreenshots/04.png)
![Screenshot 4](https://github.com/XyLoNaMiyX/Stringlate-metadata/raw/HEAD/en-GB/phoneScreenshots/05.png)


(*Thanks to [Clean Status Bar](https://f-droid.org/app/com.emmaguy.cleanstatusbar)
for the tidy screenshots*)

## Donations
At the moment I don't have any donating system. However, if you really are
interested, please drop an issue on GitHub and I'll take a look at it. You
would be my first donor!
Remember that not only you can donate money, but also appreciation. Both are very welcome!

* @Lonami: Please refer to https://lonamiwebs.github.io/donate/
* @gsantner: [Web](https://gsantner.net/supportme?source=readme&project=openlauncher) | [LiberaPay](https://liberapay.com/gsantner/donate)

## License
The project is licensed under the
6 changes: 3 additions & 3 deletions help/en.md
Original file line number Diff line number Diff line change
@@ -20,9 +20,9 @@ application and **start translating** all the *strings* to your own locale.

## How do I tell the developers that I translated their app? <a name="how-to-let-know"></a>
You've finished? That was quick! From *Stringlate*, you're able to export
the result of your hard work by tapping `Menu > Export…`. You can export
the resulting file to the *SD card*, to a *GitHub Gist*, or simply sharing
the content of the file by any other way (even *email*).
the result of your hard work by tapping `Menu > Export…`.
You can **export** the translations to the SD card, share it to any service,
send it via email, create a GitHub Gist or simply copy its contents to the clipboard.

Once this is done, get the resulting file or URL from wherever you exported it
and head to the [issues](https://github.com/LonamiWebs/Stringlate/issues) page
31 changes: 0 additions & 31 deletions io.github.lonamiwebs.stringlate.txt

This file was deleted.

Binary file removed resources/screenshots/s1.png
Binary file not shown.
Binary file removed resources/screenshots/s2.png
Binary file not shown.
Binary file removed resources/screenshots/s3.png
Binary file not shown.
Binary file removed resources/screenshots/s4.png
Binary file not shown.
Binary file removed resources/screenshots/s5.png
Binary file not shown.
79 changes: 67 additions & 12 deletions src/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,29 +1,84 @@
apply plugin: 'com.android.application'
if (enable_plugin_kotlin) {
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
}

ext.version_setup_minSdk = 15

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
compileSdkVersion version_setup_compileSdk
flavorDimensions "default"

defaultConfig {
minSdkVersion version_setup_minSdk
targetSdkVersion version_setup_targetSdk

versionCode 1007
versionName "0.15.2"
applicationId "io.github.lonamiwebs.stringlate"
minSdkVersion 15
targetSdkVersion 25
versionCode 992
versionName "0.9.10b"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildConfigField "String[]", "DETECTED_ANDROID_LOCALES", "${findUsedAndroidLocales()}"
buildConfigField "String", "BUILD_DATE", "\"${getBuildDate()}\""
buildConfigField "String", "GITHASH", "\"${getGitHash()}\""
resValue "string", "manifest_package_id", "io.github.lonamiwebs.stringlate"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
lintOptions {
disable 'MissingTranslation'
}
}
}

sourceSets {
if (enable_plugin_kotlin) {
main.java.srcDirs += 'src/main/kotlin'
}
}

lintOptions {
disable 'MissingTranslation'
disable 'ExtraTranslation'
}

packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/DEPENDENCIES'
}
}

dependencies {
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'org.eclipse.jgit:org.eclipse.jgit:3.5.2.201411120430-r'
// Android standard libs
implementation "com.android.support:appcompat-v7:${version_library_appcompat}"
implementation "com.android.support:design:${version_library_appcompat}"
implementation "com.android.support:preference-v7:${version_library_appcompat}"
implementation "com.android.support:preference-v14:${version_library_appcompat}"
// Tool libraries
implementation "com.jakewharton:butterknife:${version_library_butterknife}"
// Include core project
implementation(project(':core')) {
exclude(group: 'org.json', module: 'json')
exclude(group: 'org.apache.servicemix.bundles', module: 'org.apache.servicemix.bundles.xmlpull')
}

// Processors
def anpros = ["com.jakewharton:butterknife-compiler:${version_library_butterknife}"]
for (anpro in anpros) {
if (enable_plugin_kotlin) {
kapt anpro
} else {
annotationProcessor anpro
}
}
}
49 changes: 30 additions & 19 deletions src/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -6,60 +6,72 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="21" />

<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="21" />

<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:icon="@drawable/ic_launcher"
android:roundIcon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<meta-data android:name="android.max_aspect" android:value="2.1" />

<activity
android:name=".activities.repositories.RepositoriesActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<!-- Launch Stringlate from another application -->
<intent-filter>
<action android:name="io.github.lonamiwebs.stringlate.TRANSLATE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>

<!-- Launch Stringlate from clicking a special URL:
https://lonamiwebs.github.io/stringlate/translate?git={git repo url} -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="github.com"
android:pathPattern="/.*/.*"
android:host="lonamiwebs.github.io"
android:pathPattern="/stringlate/translate.*"
android:scheme="https" />

</intent-filter>
</activity>
<activity
android:name=".activities.DiscoverActivity"
android:label="@string/discover"
android:screenOrientation="portrait">
android:label="@string/discover">
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<activity
android:name=".activities.translate.TranslateActivity"
android:screenOrientation="portrait" />
android:name=".activities.translate.TranslateActivity" />
<activity
android:name=".activities.export.CreateGistActivity"
android:screenOrientation="portrait" />
<activity android:name=".activities.OnlineHelpActivity" />
android:name=".activities.export.CreateGistActivity" />
<activity android:name=".activities.info.BrowserActivity" />
<activity android:name=".activities.translate.SearchStringActivity" />
<activity
android:name=".activities.GitHubLoginActivity"
android:label="@string/login_to_github">
android:name=".activities.SettingsActivity"
android:theme="@style/AppTheme.NoActionBar"
android:label="@string/settings">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

@@ -73,12 +85,11 @@
</activity>
<activity
android:name=".activities.export.CreateIssueActivity"
android:label="@string/create_issue"
android:screenOrientation="portrait"/>
android:label="@string/create_issue" />
<activity
android:name=".activities.export.CreatePullRequestActivity"
android:label="@string/create_pr"
android:screenOrientation="portrait"/>
<activity android:name=".activities.export.CreateUrlSuccessActivity" />
android:label="@string/create_pr" />
<activity android:name=".activities.export.CreateUrlActivity" />
<activity android:name=".activities.translate.PeekTranslationsActivity" />
</application>
</manifest>
Loading