Closed (fixed)
Project:
Organic Groups
Version:
master
Component:
og.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2008 at 09:56 UTC
Updated:
10 Jun 2008 at 00:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
moshe weitzman commentedi mentioned it before - those views strings make little sense to translate. they will end up using the language of the user who was active when cache was rebuilt. earl has an open discussion going about translation of views.
please patch against 6 as well.
Comment #2
hass commentedI remember you wrote something about a caching issue (http://drupal.org/node/240478#comment-820932) and you wished it get a WON'T FIX, but Earl said he have always cached the views data by language (http://drupal.org/node/240478#comment-820948)... I'm not sure if you are right here or not, but i hope Earl knows best.
Earl haven't refused this patches - are you going to refuse the above patch as is!? I'm little bit lost about views and caching issues...
As i understand you above "code needs work" for the D6 patch or something else?
Comment #3
hass commentedAttached a D6 patch after a more deeper code review that contains much more changes to get things better for future.
Comment #4
hass commentedAnd a new D5 version. It is smaller while i haven't wasted my time on minor double to single quote changes as I've done in D6 version.
Aside coder.module should run on OG... there is much to do on code style and trailing spaces.
Comment #5
hass commentedAre there any issues with the patches?
Comment #6
moshe weitzman commentedSo, that begs the question of why there is no t() around strings when you export from Views? All these Views changes are just going to get overridden when I re-export. I refer to the D6 patch, specifically.
Comment #7
merlinofchaos commentedViews caches by language, so translating strings default views is recommended. Now, you still lose the translation when the view is overridden, but it's better than not translating at all.
Comment #8
hass commentedIf someone overwrites the view files and does not insert the t()'s back it's his own fault - not OG's. So setting back to CNR as the patch seem to be correct. Thank you.
Comment #9
moshe weitzman commentedThat someone is going to be me. I work on these Views by constantly making changes and exporting them to code. I don't yet understand why Views export does not add t() itself.
Comment #10
hass commentedHm - what about leaving the views part outside for now and add the t'ified strings back later, when you are finished.
In parallel we could file a feature request in views queue to t'ify strings automatically in the views generator!? See #262879: Exports: t'ify view templates by default
Comment #11
merlinofchaos commentedViews export doesn't add the t()s itself because when I went to do that, I discovered that it's a little bit difficult to identify where the t() needs to go from code. Remember, lots of it ends up being exported via var_export.
Comment #12
moshe weitzman commentedI applied this to 5 and 6 (except default Views, since those are in flux for 6)
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.