Download & Extend

Use format_date() for translatable date tokens

Project:Token
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Dave Reid
Status:closed (fixed)

Issue Summary

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

Comments

#1

Project:Submitted By» Token
Version:6.x-1.2» 6.x-1.11
Component:Miscellaneous» Code

Moving to the token queue.

#2

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

Title:[token] not translated» [d] [month] [yyyy] tokens not translated
Category:support request» bug report

Better title.

#4

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

#5

Version:6.x-1.11» 6.x-1.x-dev

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

AttachmentSizeStatusTest resultOperations
token_433486.patch7.92 KBIgnored: Check issue status.NoneNone

#6

Status:active» needs review

#7

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

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

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

Would you mind posting a patch for the latest version ?

I'm willing to test it.

#11

Ok, reroll.

AttachmentSizeStatusTest resultOperations
token_433486-2.patch7.87 KBIgnored: Check issue status.NoneNone

#12

Thanks for this patch.:)
/Subscribing/

#13

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

#14

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

#15

Status:needs review» needs work

Patch contains some unrelated changes to the [user] token.

#16

Title:[d] [month] [yyyy] some date tokens are not translatable» Use format_date() for translatable date tokens
Assigned to:Anonymous» Dave Reid

More general title

Also see #307520: Date formatting function

#17

Status:needs work» fixed

This is now fixed with #307520: Date formatting function.

#18

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here