Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1131)

Unified Diff: chrome/browser/ui/toolbar/app_menu_model.cc

Issue 1989563002: i18n of Zoom % to use locally correct numeric glyphs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/toolbar/app_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/app_menu_model.cc b/chrome/browser/ui/toolbar/app_menu_model.cc
index d1d6723473c5c97147e78ee1297606714b55cf98..f5ec492370512f710863a600163133a9d77ee51a 100644
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -10,9 +10,9 @@
#include "base/command_line.h"
#include "base/debug/debugging_flags.h"
#include "base/debug/profiler.h"
+#include "base/i18n/number_formatting.h"
#include "base/macros.h"
#include "base/metrics/histogram.h"
-#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
@@ -940,8 +940,7 @@ void AppMenuModel::UpdateZoomControls() {
browser_->tab_strip_model()->GetActiveWebContents())
->GetZoomPercent();
}
- zoom_label_ = l10n_util::GetStringFUTF16(
- IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
jungshik at Google 2016/05/17 23:58:43 Anyway, please drop IDS_ZOOM_PERCENT from a grd f
Greg Levin 2016/05/18 21:33:44 Done.
+ zoom_label_ = base::FormatPercent(zoom_percent);
Greg Levin 2016/05/17 18:17:44 I don't know what this change does, or if it's nec
Peter Kasting 2016/05/18 02:37:25 Code search says this is the label for IDC_ZOOM_PE
Greg Levin 2016/05/18 21:33:44 Ok, after you pointed the way, it looks like the .
}
void AppMenuModel::OnZoomLevelChanged(

Powered by Google App Engine
This is Rietveld 408576698