Merge pull request #1053 from wolfman2000/wolf-neobeat-songs-played

Properly translate # songs played.
This commit is contained in:
Jason Felds
2016-04-10 20:27:11 -04:00
3 changed files with 9 additions and 3 deletions
@@ -1,6 +1,10 @@
function GetLocalProfiles() function GetLocalProfiles()
local t = {}; local t = {};
function GetSongsPlayedString(numSongs)
return numSongs == 1 and Screen.String("SingularSongPlayed") or Screen.String("SeveralSongsPlayed")
end
for p = 0,PROFILEMAN:GetNumLocalProfiles()-1 do for p = 0,PROFILEMAN:GetNumLocalProfiles()-1 do
local profile=PROFILEMAN:GetLocalProfileFromIndex(p); local profile=PROFILEMAN:GetLocalProfileFromIndex(p);
local ProfileCard = Def.ActorFrame { local ProfileCard = Def.ActorFrame {
@@ -16,9 +20,7 @@ function GetLocalProfiles()
InitCommand=cmd(shadowlength,1;y,8;zoom,0.5;vertspacing,-8;ztest,true); InitCommand=cmd(shadowlength,1;y,8;zoom,0.5;vertspacing,-8;ztest,true);
BeginCommand=function(self) BeginCommand=function(self)
local numSongsPlayed = profile:GetNumTotalSongsPlayed(); local numSongsPlayed = profile:GetNumTotalSongsPlayed();
local s = numSongsPlayed == 1 and "Song" or "Songs"; self:settext( string.format( GetSongsPlayedString( numSongsPlayed ), numSongsPlayed ) )
-- todo: localize
self:settext( numSongsPlayed.." "..s.." Played" );
end; end;
}; };
}; };
+2
View File
@@ -2728,6 +2728,8 @@ HelpText=&MENUUP;&MENUDOWN; Move &MENULEFT;&MENURIGHT; Change Value
HeaderText=Course Overview HeaderText=Course Overview
[ScreenSelectProfile] [ScreenSelectProfile]
HeaderText=Select Profile HeaderText=Select Profile
SingularSongPlayed=%d Song Played
SeveralSongsPlayed=%d Songs Played
[ScreenSelectPlayStyle] [ScreenSelectPlayStyle]
HeaderText=Select Style HeaderText=Select Style
[ScreenGameInformation] [ScreenGameInformation]
+2
View File
@@ -2675,6 +2675,8 @@ HelpText=&MENUUP;&MENUDOWN; Mover &MENULEFT;&MENURIGHT; Cambiar valor
HeaderText=Vista de cursos HeaderText=Vista de cursos
[ScreenSelectProfile] [ScreenSelectProfile]
HeaderText=Elegir perfil HeaderText=Elegir perfil
SingularSongPlayed=%d Canción Jugadas
SeveralSongsPlayed=%d Canciones Jugadas
[ScreenSelectPlayStyle] [ScreenSelectPlayStyle]
HeaderText=Selecciona estilo HeaderText=Selecciona estilo
[ScreenGameInformation] [ScreenGameInformation]