[d] [month] [yyyy] some date tokens are not translatable

policleto - April 14, 2009 - 16:31
Project:Token
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Hi all,
I set fom mu News type the following pattern

Pubblicato il [d] [month] [yyyy] (Pubblicato means Published in Italian)

The month won't be translated when I refresh my News pubblications.

How can I obltain month names translated in the current language the site is using?
Thanks

#1

NancyDru - April 15, 2009 - 20:30
Project:Submitted By» Token
Version:6.x-1.2» 6.x-1.11
Component:Miscellaneous» Code

Moving to the token queue.

#2

fei - May 13, 2009 - 01:20

Bump! I am having the same issues when trying to output semantic URLs in French. This is a highly desirable feature for the international Drupal community! (many thanks for any help)

#3

greggles - May 14, 2009 - 16:26
Title:[token] not translated» [d] [month] [yyyy] tokens not translated
Category:support request» bug report

Better title.

#4

tourtools - May 19, 2009 - 12:28

same problem with [mon] month abbreviation token, can't find in translation if I search May or Jun or wathever abbreviated month

#5

tobiasb - June 28, 2009 - 08:54
Version:6.x-1.11» 6.x-1.x-dev

here is a patch for all translatable date-tokens for nodes & comments.

AttachmentSize
token_433486.patch 7.92 KB

#6

tobiasb - May 27, 2009 - 16:18
Status:active» needs review

#7

doomed - June 28, 2009 - 01:58

Hello Razor,

I see there is a new version for this module, of June 1st.

Is the patch included in it?

(i dont think it is, from the release notes: http://drupal.org/node/479142 )

#8

doomed - June 30, 2009 - 05:05

Hmm problems...

One one site, i updated to Token v6.x-1.12 and the translation bug is still there.

On another site, running Token v6.x-1.11 i tried to apply the patch but got this error on the command prompt (Vista):

C:\Users\myuser\Desktop\Downloads\PATCHIN\token> patch < token_433486.patch
patching file token_comment.inc
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

And immediatly the patch.exe application crashed with Windows asking if i wanted to report to Microsoft (the usual).

#9

tobiasb - June 30, 2009 - 08:02
Title:[d] [month] [yyyy] tokens not translated» [d] [month] [yyyy] some date tokens are not translatable

The patch is from 27 May 2009. therefore outdated.

#10

doomed - July 1, 2009 - 05:03

Would you mind posting a patch for the latest version ?

I'm willing to test it.

#11

tobiasb - July 3, 2009 - 10:59

Ok, reroll.

AttachmentSize
token_433486-2.patch 7.87 KB

#12

a.a.egoroff - July 19, 2009 - 00:16

Thanks for this patch.:)
/Subscribing/

#13

Danny_Joris - September 23, 2009 - 02:37

Is this committed to a release? Can someone review this plz? This is an important addition to Drupal.

#14

tomsm - September 29, 2009 - 08:12

Yes, translation of tokens would be most welcome. I need to translate [type-name] for my automatic titles module.

 
 

Drupal is a registered trademark of Dries Buytaert.