mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
translate activity window titles
This commit is contained in:
parent
7f48783fb2
commit
f0b5584e38
2 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,7 @@ public class DelegateBase implements DlgDelegate.DlgClickNotify,
|
||||||
m_activity = activity;
|
m_activity = activity;
|
||||||
m_delegate = new DlgDelegate( activity, this, bundle );
|
m_delegate = new DlgDelegate( activity, this, bundle );
|
||||||
m_optionsMenuID = optionsMenu;
|
m_optionsMenuID = optionsMenu;
|
||||||
|
LocUtils.xlateTitle( activity );
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onCreateOptionsMenu( Menu menu )
|
public boolean onCreateOptionsMenu( Menu menu )
|
||||||
|
|
|
@ -86,6 +86,15 @@ public class LocUtils {
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void xlateTitle( Activity activity )
|
||||||
|
{
|
||||||
|
String title = activity.getTitle().toString();
|
||||||
|
String xlated = xlateString( activity, title );
|
||||||
|
if ( ! title.equals(xlated) ) {
|
||||||
|
activity.setTitle( xlated );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void xlateView( Activity activity )
|
public static void xlateView( Activity activity )
|
||||||
{
|
{
|
||||||
xlateView( activity, Utils.getContentView( activity ) );
|
xlateView( activity, Utils.getContentView( activity ) );
|
||||||
|
|
Loading…
Reference in a new issue