diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/file_path.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/file_path.h b/base/file_path.h index b608651..e1dbd22 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -61,7 +61,13 @@ // | FilePath log_file_path(kLogFileName); // | [...] // | } - +// +// WARNING: FilePaths should ALWAYS be displayed with LTR directionality, even +// when the UI language is RTL. This means you always need to pass filepaths +// through l10n_util::WrapPathWithLTRFormatting() before displaying it in the +// RTL UI. +// +// This is a very common source of bugs, please try to keep this in mind. #ifndef BASE_FILE_PATH_H_ #define BASE_FILE_PATH_H_ |