xoops forums

cristian76

Just popping in
Posted on: 2010/8/18 14:44
cristian76
cristian76 (Show more)
Just popping in
Posts: 10
Since: 2010/8/18
#1

Error translate language something of the profile user

Hi,
I have a problem to translate module profile into Italian

In the user registration and profile the select modules notification and order comment, not change language (example:(temporarily disable, private, Email not change) but it's always in english.
You can see error in this image: http://yfrog.com/juerrorjbp


In the file's language the define is correct. I also tried changing the constants from the English language, but nothing has changed!

Then I discovered the field of text field_options in the table xoops_profile_field.
It contains:
a3: (i0s28"VGVtcG9yYXJpbHkgRGlzYWJsZQ ==" i1s20"UHJpdmF0ZSBNZXNzYWdl" i2s44"RW1haWwgKHVzZSBhZGRyZXNzIGluIG15IHByb2ZpbGUp";)


Only if I change this mysterious code changes something!

How then to translate into Italian? Why the language file do not work?

thanks and sorry for my bad English
Cristian

cristian76

Just popping in
Posted on: 2010/8/18 14:52
cristian76
cristian76 (Show more)
Just popping in
Posts: 10
Since: 2010/8/18
#2

Re: Error translate language something of the profile user

Oh sorry! I ask the moderator if you move my discussion in xoops 2.4.5.
This problem is with xoops 2.4.5

uberrookie

Just popping in
Posted on: 2011/5/9 19:35
uberrookie
uberrookie (Show more)
Just popping in
Posts: 34
Since: 2011/3/29
#3

Re: Error translate language something of the profile user

for some reason the text in the db is base64 encoded.
E.g.
VGVtcG9yYXJpbHkgRGlzYWJsZQ ==

is
Temporarily Disable


I dont know the contruction exactly, but
a3: (i0s28"VGVtcG9yYXJpbHkgRGlzYWJsZQ ==" i1s20"UHJpdmF0ZSBNZXNzYWdl" i2s44"RW1haWwgKHVzZSBhZGRyZXNzIGluIG15IHByb2ZpbGUp";)


means something like:
3 options
first id = 0
first text is a string of 28 chars which are VGVtcG9yYXJpbHkgRGlzYWJsZQ ==
etcetera...

If you want to translate it, you'll have to base64_encode your text.
See http://www.tools4noobs.com/online_php_functions/base64_encode/

wishcraft

Module Developer
Posted on: 2011/5/11 10:00
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3711
Since: 2007/5/18
#4

Re: Error translate language something of the profile user

Have you tried profile 1.67 from www.chronolabs.coop? Has user comments, validation and a directory.
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies