-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Select voice in correct language. Issue #140
Translate voice text.
- Loading branch information
Starcommander
committed
Mar 30, 2020
1 parent
1321400
commit 3805a17
Showing
12 changed files
with
262 additions
and
17 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
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
58 changes: 58 additions & 0 deletions
58
PocketMaps/app/src/main/java/com/junjunguo/pocketmaps/navigator/NaviText.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,58 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package com.junjunguo.pocketmaps.navigator; | ||
|
||
import android.app.Activity; | ||
import com.junjunguo.pocketmaps.R; | ||
|
||
/** | ||
* | ||
* @author ppp | ||
*/ | ||
public class NaviText | ||
{ | ||
public static String sIn; | ||
public static String sMeters; | ||
public static String sFeets; | ||
public static String sUseRound; | ||
public static String sLeaveRound; | ||
public static String sTurnXXX; | ||
public static String sKeepXXX; | ||
public static String sLeft; | ||
public static String sRight; | ||
public static String sSlightL; | ||
public static String sSlightR; | ||
public static String sSharpL; | ||
public static String sSharpR; | ||
public static String sWrongDir; | ||
public static String sOn; | ||
public static String sOnto; | ||
public static String sContinue; | ||
public static String sNavEnd; | ||
|
||
public static void initTextList(Activity activity) | ||
{ | ||
if (sIn != null) { return; } | ||
sIn = activity.getResources().getString(R.string.navivoice_in); | ||
sFeets = activity.getResources().getString(R.string.navivoice_feets); | ||
sMeters = activity.getResources().getString(R.string.navivoice_meters); | ||
sUseRound = activity.getResources().getString(R.string.navivoice_useround); | ||
sLeaveRound = activity.getResources().getString(R.string.navivoice_leaveround); | ||
sTurnXXX = activity.getResources().getString(R.string.navivoice_turnxxx); | ||
sKeepXXX = activity.getResources().getString(R.string.navivoice_keepxxx); | ||
sLeft = activity.getResources().getString(R.string.navivoice_left); | ||
sRight = activity.getResources().getString(R.string.navivoice_right); | ||
sSlightL = activity.getResources().getString(R.string.navivoice_slightl); | ||
sSlightR = activity.getResources().getString(R.string.navivoice_slightr); | ||
sSharpL = activity.getResources().getString(R.string.navivoice_sharpl); | ||
sSharpR = activity.getResources().getString(R.string.navivoice_sharpr); | ||
sWrongDir = activity.getResources().getString(R.string.navivoice_wrongdir); | ||
sOn = activity.getResources().getString(R.string.navivoice_on); | ||
sOnto = activity.getResources().getString(R.string.navivoice_onto); | ||
sContinue = activity.getResources().getString(R.string.navivoice_continue); | ||
sNavEnd = activity.getResources().getString(R.string.navivoice_navend); | ||
} | ||
} |
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
Oops, something went wrong.