Language Support

This commit is contained in:
mmk2410 2015-02-14 18:45:28 +01:00
parent 159abc21c8
commit e1e3b178e8
4 changed files with 15 additions and 25 deletions

View file

@ -21,7 +21,6 @@
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java" afterPath="$PROJECT_DIR$/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java" afterPath="$PROJECT_DIR$/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" afterPath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" afterPath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/values-de/strings.xml" afterPath="$PROJECT_DIR$/app/src/main/res/values-de/strings.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/values-de/strings.xml" afterPath="$PROJECT_DIR$/app/src/main/res/values-de/strings.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/values/styles.xml" afterPath="$PROJECT_DIR$/app/src/main/res/values/styles.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
</list> </list>
<ignored path="Morse Converter.iws" /> <ignored path="Morse Converter.iws" />
@ -1133,7 +1132,11 @@
<created>1423932347469</created> <created>1423932347469</created>
<updated>1423932347469</updated> <updated>1423932347469</updated>
</task> </task>
<option name="localTasksCounter" value="3" /> <task id="LOCAL-00003" summary="Better KitKat support">
<created>1423935864836</created>
<updated>1423935864836</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers /> <servers />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
@ -1218,7 +1221,8 @@
<TodoPanelSettings /> <TodoPanelSettings />
</option> </option>
<MESSAGE value="Added the other sections" /> <MESSAGE value="Added the other sections" />
<option name="LAST_COMMIT_MESSAGE" value="Added the other sections" /> <MESSAGE value="Better KitKat support" />
<option name="LAST_COMMIT_MESSAGE" value="Better KitKat support" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>

View file

@ -1,5 +1,6 @@
package de.marcelkapfer.morseconverter; package de.marcelkapfer.morseconverter;
import android.content.res.Resources;
import android.os.Bundle; import android.os.Bundle;
import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer; import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer;
import it.neokree.materialnavigationdrawer.elements.MaterialSection; import it.neokree.materialnavigationdrawer.elements.MaterialSection;
@ -11,12 +12,14 @@ public class MainActivity extends MaterialNavigationDrawer {
@Override @Override
public void init(Bundle savedInstanceState) { public void init(Bundle savedInstanceState) {
Resources res = getResources();
writtenMorse = this.newSection("writtenMorse", new MainFragment()); writtenMorse = this.newSection("writtenMorse", new MainFragment());
normalMorse = this.newSection("Normal Morse", new MorseFragment()); normalMorse = this.newSection(res.getString(R.string.normalMorse), new MorseFragment());
about = this.newSection("About", new AboutFragment()); about = this.newSection(res.getString(R.string.about), new AboutFragment());
this.addSection(writtenMorse); this.addSection(writtenMorse);
this.addSection(normalMorse); this.addSection(normalMorse);
this.addBottomSection(about); this.addDivisor();
this.addSection(about);
this.setDrawerHeaderImage(this.getResources().getDrawable(R.drawable.feature_graphics)); this.setDrawerHeaderImage(this.getResources().getDrawable(R.drawable.feature_graphics));
allowArrowAnimation(); allowArrowAnimation();
this.disableLearningPattern(); this.disableLearningPattern();

View file

@ -45,12 +45,5 @@
\n \nFehlender Code \nWenn du auf einen fehlenden Code aufmerksam geworden bist, dann schreibe eine Email an marcelmichaelkapfer@yahoo.co.nz.</string> \n \nFehlender Code \nWenn du auf einen fehlenden Code aufmerksam geworden bist, dann schreibe eine Email an marcelmichaelkapfer@yahoo.co.nz.</string>
<string name="about">Über</string> <string name="about">Über</string>
<string name="normalMorse">Normales Morse</string>
<string name="drawer_open">Navigationsmenü öffnen</string>
<string name="drawer_close">Navigationsmenü schließen</string>
<string-array name="menu_array">
<item>writtenMorse</item>
<item>Normal Morse</item>
<item>Über</item>
</string-array>
</resources> </resources>

View file

@ -42,15 +42,5 @@
\n \nHow to \nYou can find a detailed guide on marcel-kapfer.de/projects/morse/index.html#howto_android \n \nHow to \nYou can find a detailed guide on marcel-kapfer.de/projects/morse/index.html#howto_android
\n \nMissing Code \nIf you discovered, that code is missing, then write me a mail to marcelmichaelkapfer@yahoo.co.nz and tell me about it.</string> \n \nMissing Code \nIf you discovered, that code is missing, then write me a mail to marcelmichaelkapfer@yahoo.co.nz and tell me about it.</string>
<string name="about">About</string> <string name="about">About</string>
<string name="drawer_open">Open navigation drawer</string> <string name="normalMorse">Normal Morse</string>
<string name="drawer_close">Close navigation drawer</string>
<string-array name="menu_array">
<item>writtenMorse</item>
<item>Normal Morse</item>
<item>About</item>
</string-array>
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources> </resources>