mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
fix for #38834 r=ben (last week sometime)
make wizard page X of Y localizable
This commit is contained in:
parent
fa3dec7235
commit
8fd7d44622
@ -157,14 +157,14 @@ function WM_ProgressUpdate( currentPageNumber )
|
||||
{
|
||||
var statusbar = document.getElementById ( "status" );
|
||||
if ( statusbar ) {
|
||||
var string = "";
|
||||
string += (currentPageNumber + 1);
|
||||
try {
|
||||
string += ( " " + this.bundle.GetStringFromName("oflabel") + " " );
|
||||
} catch (e) {
|
||||
// mac string bundle hack
|
||||
string += " of ";
|
||||
}
|
||||
var string;
|
||||
try {
|
||||
string = this.bundle.formatStringFromName("oflabel",
|
||||
[currentPageNumber,
|
||||
this.GetMapLength], 2);
|
||||
} catch (e) {
|
||||
string = "";
|
||||
}
|
||||
string += this.GetMapLength();
|
||||
statusbar.setAttribute( "progress", string );
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
finishButtonLabel=Finish
|
||||
nextButtonLabel=Next
|
||||
oflabel=of
|
||||
oflabel=%S of %S
|
||||
|
Loading…
x
Reference in New Issue
Block a user