Ticket #19603 (new task (blessed))

Opened 2 months ago

Last modified 7 days ago

Support locale-specific modifications in core

Reported by: nacin Owned by:
Priority: normal Milestone: 3.4
Component: I18N Version:
Severity: normal Keywords: 2nd-opinion
Cc: scribu, info@…, kaipgis@…

Description

(See also #19598, #19599, #19600, #19601, #19602, which lead up to this ticket.)

WordPress should support, maintain, and ship with locale-specific modifications, acting on the advice of the translation teams.

I've gone through i18n.svn.wordpress.org. Some of these modifications include:

  • Targeted custom CSS, such as font family optimizations for Hebrew (Arial), ug_CN, etc.
  • Conversions to Latin characters (sr_RS and I think one other locale).
  • Some current modifications that can be done either with existing gettext, or adding specific gettext cases to core.
  • Some locales have plugins (some of which are extensive) -- in particular, the wp-multibyte-patch (ja), but also cxapelado and transliterado (eo), and wp-jalali (fa_IR).

Attachments

19603.diff Download (5.0 KB) - added by nacin 3 weeks ago.
19603-lt_LT.diff Download (799 bytes) - added by settle 4 days ago.
Lithuanian CSS

Change History

  • Cc scribu added

comment:2 follow-up: ↓ 3   scribu2 months ago

Isn't this what the locale.php file is for, though?

comment:3 in reply to: ↑ 2   nacin2 months ago

Replying to scribu:

Isn't this what the locale.php file is for, though?

Yes, but the idea is to render it unnecessary. I'll be posting to wppolyglots shortly.

More thoughts:

Some locales also override a number of core CSS files (including for TinyMCE and editor styles), so we will need to see why, and act accordingly.

  • Cc info@… added

nacin3 weeks ago

  • Keywords 2nd-opinion added

Still working on an inventory for all locale modifications. I hope to spin different aspects off into specific tickets. For now, a test of converting to Arial for he_IL, piggybacked on the existing RTL stylesheet - 19603.diff Download.

In [19789]:

LTR for fields on setup-config.php. see #19603, fixes #18180.

In [19823]:

Translate another  http://wordpress.org/ link. see #19603.

I did an initial few sweeps through all locales over the last week. That has resulted in a number of commits across a swath of 3.4 i18n tickets. I've then gone through and cleaned up each i18n directory (in i18n.svn.wordpress.org) that needed it, across around 75 commits.

For every locale that has received a single 3.3 download, all are clear, except the following:

Each locale link goes to their repo. And by "clear," I mean they have at most wp-config-sample.php, a readme, and a license in their language.

In [19825]:

Initial import of localized CSS, for Chinese and Hebrew. see #19603.

In [19826]:

Add ru_RU CSS. see #19603.

In [19829]:

Use translate, not translate with context. props azaozz. see #19603.

*deleted*

Last edited 3 weeks ago by Jayjdk (previous) (diff)

In [19838]:

Echo "WordPress.org" as well as translating it in the Meta widget. See #19603.

  • Cc kaipgis@… added

Could you add some lithuanian CSS?
We need some more space for our long words.

/* lt_LT: QuickPress + Bulk Edit */
#dashboard_quick_press .input-text-wrap,
#dashboard_quick_press .textarea-wrap,
#dashboard_quick_press .wp-media-buttons  {
	margin-left: 6.7em;
}
#dashboard_quick_press h4 {
	width: 6.7em;
}
.inline-edit-row fieldset label span.title {
	width: 8em;
}
.inline-edit-row fieldset label span.input-text-wrap {
	margin-left: 8em;
}

And consider making these QuickEdit and QuickPress areas wider be default. It is too narrow for lithuanian, russian and probably some other languages.

Last edited 4 days ago by settle (previous) (diff)

settle4 days ago

Lithuanian CSS

Note: See TracTickets for help on using tickets.