In tweet.tpl and twitter_views_field_handlers.inc there are hardcoded text strings, Reply, Retweet, Favorite and Follow

I have fixed this in the attached patch :o)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

juampynr’s picture

Status: Active » Needs work
+++ twitter_patched/tweet.tpl.phpundefined
@@ -32,12 +32,12 @@
+    "https://twitter.com/intent/tweet?in_reply_to=<?php print $status->twitter_id; ?>"><?php t('Reply'); ?></a></li>

Missing 'print' here and in the next two ones.

frankdk’s picture

FileSize
2.61 KB

I have fixed the mixin print in the attached patch

plopesc’s picture

Status: Needs work » Needs review
FileSize
2.92 KB

Hello

Re-rolling patch avoiding the use of t() function in tpl files passing those values as theme function variables.

Regards.

plopesc’s picture

Title: Hardcodet text strings » Hardcoded text strings
Version: 7.x-5.6 » 7.x-6.x-dev

I have tested lasta patch against 7.x-6.x branch and is applied cleanly too.
Marking issue for 7.x-6.branch, then it could be backported easily.
Regards

plopesc’s picture

Issue summary: View changes
FileSize
3.22 KB
1.03 KB

I noticed there can be cache issues with text translations when hardcoding it in the hook_theme() declaration.
Re-rolling new patch.

DamienMcKenna’s picture

Status: Needs review » Reviewed & tested by the community

Short & simple.

DamienMcKenna’s picture

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Needs review

Triggering the testbot.

  • DamienMcKenna committed ec40b79 on 7.x-6.x authored by frankdk
    Issue #1943728 by frankdk, plopesc: Some text strings weren't translated...
DamienMcKenna’s picture

Status: Needs review » Fixed

Committed to 7.x-6.x.

DamienMcKenna’s picture

Version: 7.x-6.x-dev » 7.x-5.x-dev
Status: Fixed » Needs review
FileSize
3.49 KB

Rerolled for 7.x-5.x.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

  • DamienMcKenna committed 2f6593c on 7.x-5.x authored by frankdk
    Issue #1943728 by frankdk, plopesc: Some text strings weren't translated...

Status: Fixed » Closed (fixed)

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