Merge pull request #1053 from wolfman2000/wolf-neobeat-songs-played
Properly translate # songs played.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
function GetLocalProfiles()
|
||||
local t = {};
|
||||
|
||||
function GetSongsPlayedString(numSongs)
|
||||
return numSongs == 1 and Screen.String("SingularSongPlayed") or Screen.String("SeveralSongsPlayed")
|
||||
end
|
||||
|
||||
for p = 0,PROFILEMAN:GetNumLocalProfiles()-1 do
|
||||
local profile=PROFILEMAN:GetLocalProfileFromIndex(p);
|
||||
local ProfileCard = Def.ActorFrame {
|
||||
@@ -16,9 +20,7 @@ function GetLocalProfiles()
|
||||
InitCommand=cmd(shadowlength,1;y,8;zoom,0.5;vertspacing,-8;ztest,true);
|
||||
BeginCommand=function(self)
|
||||
local numSongsPlayed = profile:GetNumTotalSongsPlayed();
|
||||
local s = numSongsPlayed == 1 and "Song" or "Songs";
|
||||
-- todo: localize
|
||||
self:settext( numSongsPlayed.." "..s.." Played" );
|
||||
self:settext( string.format( GetSongsPlayedString( numSongsPlayed ), numSongsPlayed ) )
|
||||
end;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2728,6 +2728,8 @@ HelpText=&MENUUP;&MENUDOWN; Move &MENULEFT;&MENURIGHT; Change Value
|
||||
HeaderText=Course Overview
|
||||
[ScreenSelectProfile]
|
||||
HeaderText=Select Profile
|
||||
SingularSongPlayed=%d Song Played
|
||||
SeveralSongsPlayed=%d Songs Played
|
||||
[ScreenSelectPlayStyle]
|
||||
HeaderText=Select Style
|
||||
[ScreenGameInformation]
|
||||
|
||||
@@ -2675,6 +2675,8 @@ HelpText=&MENUUP;&MENUDOWN; Mover &MENULEFT;&MENURIGHT; Cambiar valor
|
||||
HeaderText=Vista de cursos
|
||||
[ScreenSelectProfile]
|
||||
HeaderText=Elegir perfil
|
||||
SingularSongPlayed=%d Canción Jugadas
|
||||
SeveralSongsPlayed=%d Canciones Jugadas
|
||||
[ScreenSelectPlayStyle]
|
||||
HeaderText=Selecciona estilo
|
||||
[ScreenGameInformation]
|
||||
|
||||
Reference in New Issue
Block a user