Keyword

Bugs and improvements in Translations

  • JoomlaCommunity
  • JoomlaCommunity's Avatar Topic Author
  • Offline
  • New Member
More
14 years 7 months ago #74233 by JoomlaCommunity
Bugs and improvements in Translations was created by JoomlaCommunity
While translating into Dutch I found a list of bugs, missing strings, strings not loaded etc.
I'll post a list here with suggested improvements and also attache a textfile with it (don't know if all the code will be accepted in the editor here).

If needed I could provide a package with adjusted files, just let me know


*Strings not loaded:

In component/language/admin/en-GB.com_k2.ini line 24, 25, 26, 27
# LEADING=# Leading
# LINKS=# Links
# PRIMARY=# Primary
# SECONDARY=# Secondary

These strings will not load properly, as they begin with # wich comment them out in a ini file.

Solution, remove the # in the labels in component/admin/models/category.xml and change the strings in component/language/admin/en-GB.com_k2.ini to:

LEADING=# Leading
LINKS=# Links
PRIMARY=# Primary
SECONDARY=# Secondary

* Wrong strings in component/language/admin/en-GB.com_k2.ini

line 149
SHOW BOTH INTROTEXT FULLTEXT=Show both introtext fulltext

should be

SHOW BOTH INTROTEXT & FULLTEXT=Show both introtext fulltext

line 235
FEATURED' NOTICE (NEXT TO TITLE)='Featured' notice (next to title)

should be

'FEATURED' NOTICE (NEXT TO TITLE)='Featured' notice (next to title)

line 343
READ MORE...' LINK='Read more...' link

should be

'READ MORE...' LINK='Read more...' link

line 354, 355 (same string double!)
SAVE & NEW=Save & New

should be

SAVE & NEW=Save & New

line 362
SOCIAL BUTTON' LIKE SHARETHIS, ADDTHIS ETC.='Social button' like ShareThis, AddThis etc.

should be
'SOCIAL BUTTON' LIKE SHARETHIS, ADDTHIS ETC.='Social button' like ShareThis, AddThis etc.

line 383
TWEET THIS' LINK='Tweet this' link

should be
'TWEET THIS' LINK='Tweet this' link

* Missing language strings in component/language/admin/en-GB.com_k2.ini:

CREATED BY=Created by
ITEM ID=Item ID
MODIFIED BY=Modified by
NOTICE: PLEASE INSTALL JOOMLAWORKS ALLVIDEOS PLUGIN IF YOU WANT TO USE THE VIDEO FEATURES OF K2!=Notice: Please install JoomlaWorks AllVideos plugin if you want to use the video features of K2!
NOTICE: PLEASE INSTALL JOOMLAWORKS SIMPLE IMAGE GALLERY (FREE/PRO) PLUGIN IF YOU WANT TO USE THE IMAGE GALLERY FEATURES OF K2!=Notice: Please install JoomlaWorks Simple Image Gallery (Free/Pro) plugin if you want to use the image gallery features of K2!

* String not loaded caused by a space at the end:

in component/admin/views/extrafieldsgroup/view.html.php line 26
JToolBarHelper::title(JText::_('Add/Edit Extra Field Group '));

should be
JToolBarHelper::title(JText::_('Add/Edit Extra Field Group'));

(remove the space at the end of the string)

* Missing language strings in modules/mod_k2_content/en-GB.mod_k2_content.ini

FETCH ITEMS FROM CHILDREN CATEGORIES=Fetch items from children categories
HIGHEST RATED=Highest rated


* Missing language strings in modules/mod_k2_tools/en-GB.mod-k2_tools.ini

CALENDAR SETTINGS=Calendar Settings
CATEGORY FILTER=Category filter


* For the plugins are no languagefiles yet.


* Extended user info in frontend in profile.php and register.php strings not loaded:

The language strings extended info like Gender, URL, User Avatar etc. will try to fetch the strings from com_user.ini. So to translate we have to hack this file, since language overrides are not allowed in 1.5. This isn't convenient, so a better solution would be to load the com_k2.ini

add to component/site/templates/profile.php on line 59 and in component/site/templates/register.php on line 61
?php JPlugin::loadLanguage( 'com_k2' ); ? (sorry this code won't show up the right way here, it should have <> around it, see also txt file attached)

to also load the strings Male, Female:
add JPlugin::loadLanguage( 'com_k2' ); in plugins/k2.php before lines 85 and 135

add these strings to component/language/site/en-GB.com_k2.ini
FEMALE=Female
MALE=Male
GENDER=Gender
UPLOAD NEW IMAGE TO REPLACE EXISTING AVATAR OR CHECK THIS BOX TO DELETE USER AVATAR=Upload new image to replace existing avatar or check this box to delete user avatar
URL=Url
USER AVATAR=User Avatar

Please fix this bugs so we can make proper translation packages.
Thanks!
Attachments:

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #74234 by JoomlaWorks
Replied by JoomlaWorks on topic Bugs and improvements in Translations
I've taken all your suggestion into account on the coming v2.2.

Thank you for the time you devoted troubleshooting these language strings.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • JoomlaCommunity
  • JoomlaCommunity's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #74235 by JoomlaCommunity
Replied by JoomlaCommunity on topic Bugs and improvements in Translations
Thanks for solving th bugs in v2.2

We've taken some time to hunt some missing language strings in 2.2
Here are the results:

Missing Language Strings in admin/language/en-GB/en-GB.com_k2.ini

IMPORT COMPLETED=Import Completed
USER GROUP SAVED=User Group Saved
USER SAVED=User Saved
GROUP SAVED=Group Saved
EXTRA FIELD SAVED=Extra Field Saved
TAG SAVED=Tag Saved
CATEGORY SAVED=Category Saved
NOTICE: PLEASE INSTALL JOOMLAWORKS ALLVIDEOS PLUGIN IF YOU WANT TO USE THE VIDEO FEATURES OF K2!=Notice: Please install JoomlaWorks AllVideos plugin if you want to use the video features of K2!
NOTICE: PLEASE INSTALL JOOMLAWORKS SIMPLE IMAGE GALLERY (FREE/PRO) PLUGIN IF YOU WANT TO USE THE IMAGE GALLERY FEATURES OF K2!=Notice: Please install JoomlaWorks Simple Image Gallery (Free/Pro) plugin if you want to use the image gallery features of K2!
USE THE FORM ABOVE TO REPLACE THE EXISTING VIDEO OR CHECK THIS BOX TO DELETE CURRENT VIDEO=Use the form above to replace the existing video or check this box to delete current video
WRITE A TAG AND PRESS "RETURN" OR "COMMA" TO ADD IT.=Write a tag and press "return" or "comma" to add it.
CHANGES TO ITEM SAVED=Changes to Item saved
CHANGES TO EXTRA FIELD SAVED=Chabges to Extra Field saved
CHANGES TO GROUP SAVED=Changes to Group saved
CHANGES TO USER GROUP SAVED=Changes to User Group saved
CHANGES TO USER SAVED=Changes to User saved
COMMENT SAVED=Comment saved
CHANGES TO TAG SAVED=Changes to Tag saved
CHANGES TO CATEGORY SAVED=Changes to Category saved
DELETE FAILED=Delete failed
SOME OF THE CATEGORIES HAVE NOT BEEN DELETED BECAUSE THEY HAVE ITEMS.=Some of the Categories have not been deleted because they have Items.
SOME OF THE CATEGORIES HAVE NOT BEEN DELETED BECAUSE THEY HAVE CHILD CATEGORIES.=Some of the Categories have not been deleted because they have Child Categories.

Missing language strings in /language/en-GB/en-GB.com_k2.ini

VOTE=Vote
YOU HAVE ALREADY RATED THIS ITEM.=You already have rate this Item.
THANKS FOR RATING!=Thanks for rating!
COMMENT ADDED! REFRESHING PAGE...=Comment added! Refreshing page...
COMMENT ADDED AND WAITING FOR APPROVAL.=Comment added and waiting for approval.
WRITE A TAG AND PRESS "RETURN" OR "COMMA" TO ADD IT.=Write a Tag and press "Return" or "comma' to add it.
THANK YOU. YOUR COMMENT WILL BE PUBLISHED SHORTLY.=Thank you. Your comment will be published shortly.
THE WORDS YOU TYPED DID NOT MATCH THE ONES DISPLAYED. PLEASE TRY AGAIN.=The words you typed did not match the ones displayed. Please try again.
THE NAME OR EMAIL ADDRESS YOU TYPED IS ALREADY IN USE!=The Name or Email Address you typed is already in use!
YOU NEED TO FILL IN ALL REQUIRED FIELDS!=You need to fill in all Required Fields!
ITEM NOT FOUND=Item not found
INVALID E-MAIL ADDRESS!=Invalid Email Address!
NOTICE: PLEASE INSTALL THE ALLVIDEOS PLUGIN IF YOU WANT TO USE THE VIDEO FEATURES OF K2!=Notice: Please install the AllVideos plugin if you want to use the video features of K2!
NOTICE: PLEASE INSTALL THE SIMPLE IMAGE GALLERY (FREE/PRO) PLUGIN IF YOU WANT TO USE THE IMAGE GALLERY FEATURES OF K2!=Notice: Please install the Simple Image Gallery (Free/Pro) plugin if you want to use the image gallery features of K2!
VIDEO SOURCE=Video source
ITEM SAVED=Item saved

Language Strings in install.k2.php not loading and missing in admin/language/en-GB/en-GB.com_k2.ini

To get the language Strings loaded on installing K2 there should be some additions in install.k2.php
after line 66:
JPlugin::loadLanguage( 'com_k2' );
before line 120 :


also in uninstall.k2.php
after line 74


Installations/ Uninstall language strings should be added in admin/language/en-GB/en-GB.com_k2.ini
NOTICE: K2 CONTENT ELEMENTS FOR JOOM!FISH WERE NOT COPIED TO THE RELATED FOLDER, BECAUSE JOOM!FISH WAS NOT FOUND ON YOUR SYSTEM.=Notice: K2 Content Elements for Joom!Fish were not copied to the related folder, because Joom!Fish was not found on your sytem.
K2 INSTALLATION STATUS=K2 Installation Status
EXTENSION=Extension
STATUS=Status
COMPONENT=Component
MODULE=Module
CLIENT=Client
INSTALLED=Installed
NOT INSTALLED=Not Installed
PLUGIN=Plugin
GROUP=Group
K2 REMOVAL STATUS=K2 Removal Status
REMOVED=Removed
NOT REMOVED=Not Removed


Suggestions for updating language files:

In comparence with the previous release the order of the language strings in language files was mixed up. This makes it very hard for translations to get the changes in languagefiles. I almost had to tranlate it al over again. Also in previous release the strings were alphabetical ordered, which makes it easier to find a certain string. I would prefer to restore the alphabetical order and keep that in next releases.

Also there are many language strings for the backend and the frontend language files the same.
My suggestion would be to use 1 languagefile wich is installed on both admin and site languagefolders.

I'm attaching a language bug txt file, some code might not show properly here

TIA
Attachments:

Please Log in or Create an account to join the conversation.

More
14 years 4 weeks ago #74236 by JoomlaWorks
Replied by JoomlaWorks on topic Bugs and improvements in Translations
Added in 2.3 coming up next.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
14 years 4 weeks ago #74237 by Simon Wells
Replied by Simon Wells on topic Bugs and improvements in Translations
Look forward to that, saves a lot of time doing this manually ;)

JoomlaWorks said:Added in 2.3 coming up next.

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #74238 by william white
Replied by william white on topic Bugs and improvements in Translations
Just tried 2.3 on test site. The addition of the wiswig in extra fields txt area is really nice addition. Im sure i will find more...Thanks!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum