-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Spanish translations for enums and some strings. Version bump.
- Loading branch information
Aaron Huttner
authored and
Aaron Huttner
committed
Aug 27, 2016
1 parent
94d6c11
commit eee49f5
Showing
13 changed files
with
384 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<resources> | ||
<string name="development_settings">Development Settings</string> | ||
<string name="debug_drawer_network_endpoint_description">Enter the URL of the server to which you want to connect.\n\ne.g., https://bob-loblaw.local/1.0/</string> | ||
<string name="debug_drawer_network_proxy_description">Enter the host of the server through which you want to proxy.\n\ne.g., 12.34.56.78:9000</string> | ||
<string name="debug_drawer_welcome">Debug settings are available in this drawer.</string> | ||
<string name="development_settings" translatable="false">Development Settings</string> | ||
<string name="debug_drawer_network_endpoint_description" translatable="false">Enter the URL of the server to which you want to connect.\n\ne.g., https://bob-loblaw.local/1.0/</string> | ||
<string name="debug_drawer_network_proxy_description" translatable="false">Enter the host of the server through which you want to proxy.\n\ne.g., 12.34.56.78:9000</string> | ||
<string name="debug_drawer_welcome" translatable="false">Debug settings are available in this drawer.</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="application_name">Grommet Sample Internal Debug</string> | ||
<string name="launcher_name">Grommet Internal (D)</string> | ||
<string name="application_name" translatable="false">Grommet Sample Internal Debug</string> | ||
<string name="launcher_name" translatable="false">Grommet Internal (D)</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/rockthevote/grommet/util/LocaleUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.rockthevote.grommet.util; | ||
|
||
import android.content.res.Configuration; | ||
import android.os.Build; | ||
import android.view.ContextThemeWrapper; | ||
|
||
import java.util.Locale; | ||
|
||
public class LocaleUtils { | ||
|
||
private static Locale sLocale; | ||
|
||
public static void setLocale(Locale locale) { | ||
sLocale = locale; | ||
if (sLocale != null) { | ||
Locale.setDefault(sLocale); | ||
} | ||
} | ||
|
||
public static void updateConfig(ContextThemeWrapper wrapper) { | ||
if (sLocale != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { | ||
Configuration configuration = new Configuration(); | ||
configuration.setLocale(sLocale); | ||
wrapper.applyOverrideConfiguration(configuration); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.