Page MenuHomePhabricator

Add translation for "UTC" in signatures for Arabic Wikipedia
Closed, ResolvedPublic

Description

Author: mohamed.m.k

Description:
Hello

Please add the translation for "UTC" in signatures for Arabic Wikipedia.

The translation: "ت‌ع‌م".

Thanks
user:alnokta


Version: unspecified
Severity: enhancement

Details

Reference
bz14452

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:10 PM
bzimport set Reference to bz14452.

This comes from the system, not from inside MediaWiki.

ahmad.m.sherif wrote:

a patch for the problem

This patch can solve the problem. Simply editing [[Mediawiki:Timezone]] changes 'UTC' into whatever edited.

attachment Timezone.patch ignored as obsolete

mohamed.m.k wrote:

The patch is working. I will be committing it if there are no objections.

ahmad.m.sherif wrote:

another patch for global customization

This is another patch for global customization of Timezone.

Attached:

ahmad.m.sherif wrote:

Comment on attachment 5014
another patch for global customization

Index: Parser.php

  • Parser.php (revision 36581)

+++ Parser.php (working copy)
@@ -3706,6 +3706,11 @@

			$tz = date( 'T', $unixts );  # might vary on DST changeover!
			putenv( 'TZ='.$oldtz );
		}

+
+ $ctz = wfMsgForContent('timezone');
+ if (!wfEmptyMsg('timezone', $ctz)) {
+ $tz = $ctz;
+ }

		$d = $wgContLang->timeanddate( $ts, false, false ) . " ($tz)";

		# Variable replacement

The attached patch was applied in r36587; r36633 replaced this method with a slightly different one, where the hardcoded "UTC" was replaced with a "timezone-utc" message which can be customized per language.

In cases where $wgLocaltimezone is set, the system's timezone string will still be used. (This sometimes causes problems when the system returns non-ASCII code not in UTF-8, as on Windows in Japanese locale.)