Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2010 at 05:37 UTC
Updated:
5 Apr 2011 at 21:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerThats a valid feature request :)
I did not tested the patch yet, but from the api it looks fine, so i need someone who tests this.
Comment #2
adrianmak commentedI want help to test. But I'm in Windows and I have no idea how to apply a patch.
Do you mind attach patched file(s) ?
Comment #3
dawehnerYou should better learn how to apply patches... its an important skill on drupal land.
Its documented good on http://drupal.org/node/60179
Comment #4
adrianmak commentedi applied the patch and where to find this 'native language' option ?
Comment #5
dawehnerIn the field at the bottom. I guess i should test this patch :)
Comment #6
adrianmak commentedI didn't find such option at the field bottom.
I attached my patched file to make sure it is patched properly.
Comment #7
Narretz commentedHi,
I can confirm that the patch doesn't add an extra option to let the language names appear in the native language.
I corrected
parent;;option_definition()
but that didn't do the trick.
Comment #8
dawehnerSo this patch, patches now also the other field handler.
Comment #9
adrianmak commented#8
I tried this new patch. The option show up but it language still show in "English name" instead of "Native name even I checked the "native language"
Comment #10
Narretz commentedI patched it successfully, but when I try to view or administer a view I get
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/views/modules/translation/views_handler_field_node_language.inc' (include_path='.;C:\php5\pear') in C:\wamp\www\mysite\sites\all\modules\views\includes\handlers.inc on line 77but it's probably php-related
Comment #11
dawehnerTake sure that the file /sites/all/modules/views/modules/translation/views_handler_field_node_language.inc is readable by your apache.
Comment #12
Narretz commentedHi,
I couldn't really fix my fatal error after patching. How can I see if Apache has access on the file? For now, I just copied the contents of the patched file into the original file, and that works. Don't know what that should tell me. Could it have something to do with Unix/Win line endings? I am running a Windows machine here.
However!
I completed your patch, dereine (oh now I get it, it means The One, since you are from Germany ;).
I just added a $this-> to options in line 26, and tweaked the description a little bit, since it was a bit messy. Same changes for both handlers; I split the patches again (because I thought it had something to do with the fatal).
Should work now!
Thx for the patch dereine. I would very much appreciate it if you could start on http://drupal.org/node/565530 (Translation Link Field). I'd be there to review the patch ofc!
Comment #13
adrianmak commentedwith some amendment from Narretz, the patched on #12 now work!!
Regarding the description as #12 said, I think 'native name' is better than 'native language' as it match up with the wording in language setting page.
Comment #14
dawehnerNo it means "someone".
Comment #15
Narretz commented#13
glad that it works now! What about: "If enabled, the native name of the language will be displayed"?
Comment #16
adrianmak commented#15
That's the native name of a language.
I have a screen shot of language settings page on #9 catpure2.png
Comment #17
Narretz commentedI don't know what you mean exactly. Could you elaborate, or make a suggestion on the wording?
And dereine, does the patch need work, or is it ready to comit?
Comment #18
dawehnerI don't know the state of the patch. There are too many to know every patch.
Comment #19
merlinofchaos commentedIt looks like the patch works and just needs to be updated for wording. Would someone like to figure out the best wording to match core's use and reroll?
Comment #20
merlinofchaos commentedStill waiting on #19.
Comment #21
dawehnerI don't like the description here. #779436-15: Able to display 'native language' text in Node translation:language field looks better for me, together with #779436-16: Able to display 'native language' text in Node translation:language field
"If enabled, the native name of a language will be displayed"
Comment #22
merlinofchaos commentedOk, let's go with the wording in #21. Only, "a language" should be "the language".
So "If enabled, the native name of the language will be displayed."
Rerole with that and mark RTBC.
Comment #23
Narretz commentedOk, all good things come to an end. Wait, that's not the right phrase ...
Anyway, I made 2 new patches with the changes using diff.
If you need git, I see what I can do (git noob here).
Comment #24
merlinofchaos commentedI committed this to 2.x-dev -- I tried to cherry-pick it but it failed the merge.
Here's the commit hash: 5e66dd1
Comment #25
dawehnergit cherry-pick is indeed a really great tool.
Ported the commit to 6.x-3.x and 7.x-3.x