Plugin Directory

Opened 20 years ago

Last modified 20 years ago

#439 reopened defect

Localization Widgets

Reported by: Sewar Owned by: Sewar
Priority: normal Component: widgets
Severity: normal Keywords: i18n bg|has-patch bg|needs-testing
Cc:

Description

Widgets is awesome plugin, but not ready for localization, especially for non-latin languages.

The patch fix localization bugs and make it "ready for localization" as WordPress, translations just need to translate PO file.

You should apply patch ​#2887 at WordPress trac to get full translated Widgets plugin.

The PO file contain all string use "widgets" domain, "gettext" functions wich uses for create daily POT files for WordPress can't get some strings because they don't use "_ _" or "_e" functions, like "register_sidebar_widget" function, also it will include some strings uses default domain, keep them in default domain will save translators' time and will not provide two translations for one string. So, i modified the PO file manualy.

Please test it with or without localized WordPress version, and tell me about the bugs (if you was caught any of them) and write patches if you can.

Attachments (5)

widgets.diff​ (23.4 KB ) - added by Sewar 20 years ago.
widgets.pot​ (4.9 KB ) - added by Sewar 20 years ago.
Widgets PO Template
widgets.2.diff​ (24.5 KB ) - added by Sewar 20 years ago.
Updated patch, it don't require applying any other patch
widgets.3.diff​ (0 bytes ) - added by Sewar 20 years ago.
widgets.3.2.diff​ (6.4 KB ) - added by Sewar 20 years ago.
Another updated patch

Download all attachments as: .zip

Change History (9)

@Sewar
20 years ago

Widgets PO Template

#1 @Sewar
20 years ago

  • Keywords i18n bg|has-patch bg|needs-testing added
  • Owner changed from i18n to Sewar

@Sewar
20 years ago

Updated patch, it don't require applying any other patch

#2 @Sewar
20 years ago

In this patch register widgets do during init not after load plugin.

#3 @skeltoac
20 years ago

  • Resolution → fixed
  • Status new → closed

Merged in [6208] (props to Sewar)

#4 @Sewar
20 years ago

  • Resolution fixed
  • Status closed → reopened

Gettext strings in Widgets plugin should use 'widgets' domain because they are not available in default gettext domain, except those available.

Some lines i was modifed for (Right-To-Left) languages, i revert them now to original for (Left-To-Right) languages.

@Sewar
20 years ago

Another updated patch

Note: See TracTickets for help on using tickets.