HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Translating into Russian

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#64326 (In Topic #13872)
Avatar

Fan in action

Hi, Chris! I've started translating whole stuff using "Translate/re-phrase the software" and from very beginning faced an odd issue. Filling the old/new section with Russian strings and submitting completed file I receive whole my strings reflected in that long #figured values. The page itself gained same appearance instead of normal phrases in Russian. What would it be? Thanks.
Back to the top
 
Posted
Rating:
#64329
Avatar

Hi,

By default ocPortal is in ISO-8859-1 rather than utf-8.
Unfortunately the web browser let's you type whatever you want even if it is not supported by the page's character set. It works on Comcode fields and some language strings because the browser converts them to HTML entities which Comcode can understand and some language strings are also HTML.
There's a language string, charset, you can change.

I'd recommend translating on Launchpad though, so you can get other people to help you. A few people have expressed interest in russian translation.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64351
Avatar

Fan in action

Thank you Chris for quick reply. I do really enjoy the customization of the ocPortal. Nor special knoledge needed neither text editor. Nice set of features. Why should you recommend the third party Lanchpad soft? I've just wanted to see what is wrong, started experimenting with different doc charsets. And what I can not possibly understand is why the document created in my text editor in ISO-8859-1 reflects string Оформление (example) correctly in Russian but in the same time the same string on the ocPortal's page displays itself as it is.

Wow, now you can see that string above I typed as HTML has been automatically converted for display into Russian word. Here it works. Mistery…
Back to the top
 
Posted
Rating:
#64353
Avatar

Launchpad allows collaborative translations :).

The Russian characters do not exist in iso-8859-1. Browsers let you type them but when the form submits it converts it to the HTML entities (with the & then the number) because there is no other way of storing them. You need to set ocPortal to utf-8 as described in the internationalisation tutorial.
Sometimes ocPortal can display the HTML entities - but not in all spots, as you've seen.

This is all normal behaviour, not a bug. I know it's confusing, but it's outside our control unfortunately. We can't turn utf-8 on for PHP by default as it's not officially supported by PHP and thus could have a few bugs. We also can't stop the browser allowing you to input characters that aren't in the character set because there is no browser feature for it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64359
Avatar

Fan in action

I don't know. It makes sence but doesn't work for me. I even tried to use menues.po translated file from Launchpad, instead of menues.ini file.The picture remained about the same.
Attachment

Download: screen3.jpg (52 Kb, 0 downloads so far)

Than I've made an attempt to change info.php adding consistently lines

$SITE_INFO['database_charset']='utf-8';

and

$SITE_INFO['database_charset']='windows-1251';

providing cleared cashe from upgrade.php. That's the final outcome.







Back to the top
 
Posted
Rating:
#64360
Avatar

Another user had a similar problem recently with Launchpad. You need to either have global.po/global-RU.po in there (which automatically activates utf-8), or you need to translate just the 'charset' string in ocPortal to utf-8 in the global language file.

The database character set is different.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64366
Avatar

Fan in action

Bingo! Finally I see my Cyrillic in the navigation menu :thumbs:. Good start. What has had a decisive effect is your advice concerning the 'charset' string changes to utf-8 and cache clearing. The database character set happened to stated in 'windows-1251' though. I am not sure whether it's right or not. Besides you mentioned earlier that utf-8 is not supported by PhP officially. How critical it is? You probably cannot say this. Thank you for help and beautiful script.
Back to the top
 
Posted
Rating:
#64368
Avatar

Glad it's working. If the DB charset is wrong I think any errors will just be suppressed. I would not worry much about that setting, it only really is good for making sure searches handle your grammar right.
I don't know of any problems with utf-8 (only one bug report ever, and was easily fixed), and I am very tempted to turn it on by default, but I think if I did probably occasionally new bugs would be found.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#65710
Avatar

Fan in action

Hi, Chris!
I'm on my way to reach complete translation, to gain perfection so to say. There are some weird things I've noticed so far. If you remember I've added following line
$SITE_INFO['database_charset']='windows-1251';
to info.php. The whole site looked nice except few small details I describe further. Than …

when I tried one day to clear site's cashes I've seen on my upgrader page completely warped text. Under the circumstances I've chucked off already translated file RU/upgrade.ini Now I see English version like this. Some of the places were left in Russian some uncleared though.

The second think was that the left menu panels titles left untranslated as well as catalogues categories description, despite I'm sure I did translation of all these strings.



I might've got into edit menu. And what I see there is 'main_content'. I shouldn't try to translate this. Should I?



I'd be really appeciate any hint to resolve this issues
Thanks.

By the way my DB looks like this, threfore I am not able to enter any cyrrylic values


Back to the top
 
Posted
Rating:
#65715
Avatar

It's great you've got this far :).

The upgrader issue is a bug. We'll get that fixed for the next version.

Menus get created from the language strings when you install, so if you translate the strings after then it would not affect them. It's the same with some other things too. So for your own site you'll need to use the menu editor to translate those. New installs would be fine.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#65729
Avatar

Fan in action

I wish I could've gone much further. I'm only about to start theming. Thanks for quick reply. Menus and catalogues items description I've already done from inside the edit menus, but I still worried a little about DB entries. Tell me would it be reasonable to reinstall system, setting DB charset to utf-8 from very beginning. May it possibly help? I've tried to replace desired line in info.php right now and received a fatal error while just opening a Home page.
 
1.I'd like also to report about few more irregularities concerning file permittion.ini first. It looks like this



I did substitution for English version, little effect, first string appeared only as clear 'view access' in it. However it sees HTML title in Russian when you keep the cursor over it.
 
2. Transactions (manual). Is it possible to ad (edit somewhere) couple more currencies UAH and RUB? Besides in this countries any transaction is suppose to be joint with an agreement #, which could be a user's ID, but not the every user is a buyer. What we have in eCommerce are item name, item #, and amount. This agreement# might as well be an invoice #. I don't know it is not seen here in a drop down menu. Is it because I did not set a product list, yet?



Also the currency is not shown. It's to be default one. Right?



3. The custom profile fields. The options from drop down menu. They look strange. Is it because some of them are not editable? Anyway there has been programming error while I did editing 'About me', and some of the others not all options.




And last one! I feel you are to upgrade my status to 'fun in action', ha,ha, :lol:
Back to the top
 
Posted
Rating:
#65732
Avatar

Hi,

0) I think you may just need to open up the sql dump as utf-8. Most text editors let you choose when you open the file.

1) See this note from the docs:
If you find that the vertical text shown on permission editing interfaces is incorrect, it may be due to an incompatibility between PHP and the free Bitstream fonts that ocPortal bundles.
This is known to happen with Russian characters. The solution is to replace the data/fonts/Vera.ttf file with Verdana.ttf from your own computer. We would distribute this file with ocPortal, except we don't have a license to; however if you have a copy of Windows or Mac OS you should have your own licensed copy of this file.

2) This is a bug/design flaw. It should provide more currency options and they should display correctly whatever character set is being used. I've attached a fix for 5.0.3.
Attachment
» Download: currency_fix_503.zip (29 Kb, 377 downloads so far)

b) The manual transaction screen is not a main feature; basically if someone goes to purchase something but does not pay, you will see the option to say they have made a payment for it under manual transaction. If you want to get people to pay for something that isn't part of ocPortal then you can add an invoice for them. There is an option for that on the Admin Zone eCommerce page (Admin Zone > Usage > eCommerce > Invoices > Create Invoice). They will get a link to pay the invoice (e.g. by PayPal). You can also mark it manually as paid from manual transaction by selecting 'Custom work' and then the invoice will be in the list you showed.

3) Some of those names are hard-coded. ocPortal uses those names to read the CPFs for itself. We'll fix the 'VAL' bug you found there. CPF stats is just a minor feature though.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#65751
Avatar

Fan in action

0. Certainly I did. That was the dump you've seen.  
1.Sorry for not reading docs carefully.
2.Nice one. Thank you for fix. It works.  
3.The current state of financial services in those countries is in development progress. Vast majority of customers do not have Pay Pal (which is brilliant I agree) accounts and tend to pay cash or use local shops to debit amount to certain company through the cash machine so as to get goods or services on prepaid amount. That's why they have to mention agreement # during payment procedure. Bearing in mind this conditions the manual transaction become a useful feature.  
 
You say

Chris said

If you want to get people to pay for something that isn't part of ocPortal then you can add an invoice for them. There is an option for that on the Admin Zone eCommerce page (Admin Zone > Usage > eCommerce > Invoices > Create Invoice). They will get a link to pay the invoice (e.g. by PayPal). You can also mark it manually as paid from manual transaction by selecting 'Custom work' and then the invoice will be in the list you showed.
I have as you see futher in anyway the only option is 'Custom work'.

Link to pay the invoice. .

It doesn't appear to be working I'm afraid. It leads actually to error page.



I could've done a mistake somewhere. This catalog item going to the basket



Thre are two items plus 17.5% VAT, ID#94237



I'm creating invoice. See it as not paid yet.




Than I receive an e-mail. And finally error as if it's nothing on the page.
Moreover, when I cleared my basket. There were 2 items in the stock. (Min level 1 item.) And the system doesn't let me add a new same items. Not available it says. Despite i see quantites of two item when I press 'go to' to see details.
Back to the top
 
Posted
Rating:
#65775
Avatar

Fan in action

It seems I've got one more bug. There are modules in colored frames left on the Home page after opening of 'Show template edit links'. Despite I didn't save any changes.
 


Back to the top
 
Posted
Rating:
#65783
Avatar

I believe this will fix the two eCommerce bugs you've found.

Attachment
» Download: Archive.zip (15 Kb, 359 downloads so far)


If you'd like me to look at the unicode issue please send me a zip with the lang_custom/RU/*.* files and the SQL dump.

I'm not sure about the last issue. I can't reproduce it when I try. The link is meant to disable cacheing whilst it loads, but it looks like cacheing saved for the left panel. Were you manually putting keep_cache=1 in your URL for some reason when testing? That could have confused it.
Anyway, editing the panel with no changes should fix it.

Thanks
Chris


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#65784
Avatar

Community saint

The last issue happened to me once as well. I did not have time to investigate it when it happened. When I came back it had fixed itself and has not happened again.
Back to the top
 
Posted
Rating:
#65811
Avatar

Fan in action

Absolutely. Once I've carried out Theme Wizard with little changes it's gone, spontaneously.

Back to the top
 
Posted
Rating:
#65812
Avatar

Fan in action

Chris, thank you for your fix. This time I've landed on the right page.

1.The currecy signs dissapered though, as you can see on the pictures.





And here it says 'No price entry for the language'.



2. The next issue I am afraid is regarding Setup Wizard. I've done it for second time. And what I discovered is following. I'am attaching two DB dumps, before and after, and language pack, so as it was easy for you to see.

  a. The Slogan underneath the logo actually stays the old one. Doesn't want to go
  b. The search box I've choosen it to be 50% wide. Besides I'd prefere it to be placed on the right hand side. No choice for this in dropdown menu.



  c. The home page became strangely presented in the two version layout  O_o ? (See attach) 478 views (61 Kb) This time I am sure I did something wrong.


Conserning language pack. Currently it's pretty raw. I'm correcting one on every day basis. Because direct traslation does not always work. You have to find the appropriate word and reveal the essence of the IT term in a short way. Russian strings are always longer. I found your 'translate software' designer's tool very handy and useful.
Attachment
DB_dump_1
» Download: mtradere_box_1.zip (188 Kb, 370 downloads so far)
Attachment
DB_dump_2
» Download: mtradere_box_2.zip (291 Kb, 378 downloads so far)
Attachment
RU
» Download: ichif_pack.zip (301 Kb, 378 downloads so far)






Back to the top
 
Posted
Rating:
#65829
Avatar

Combined ecommerce fixes attached, including fix for last issue.

Attachment
» Download: Archive.zip (41 Kb, 340 downloads so far)


I'm looking at the setup wizard issues now and language pack.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#65849
Avatar

Hi,

In the next version the setup wizard will add line breaks between rows of 50% boxes. But you can add them in yourself. Also we'll allow any side box to also be placed in the middle, but again you can do this yourself for now.

Also I noticed the Admin Zone menu and zone menu had problems with font size so the next version will accomodate for this.

I couldn't reproduce the site slogan issue, but we've changed the setup wizard a lot for the next version so maybe it's fixed.

I had a very hard time understanding what was happening in the SQL but I worked it out eventually. The .sql file is in utf-8. However the database data in the file is written out byte-by-byte, each byte stored as a utf-8 character. So actually the .sql dump is double-utf-8 (meaning Russian characters will be 4 bytes in the end).
I'm not sure what the fix would be. It's a weird thing. I do know you could edit the character set of your database and each table to utf-8, maybe that would make it write out character-by-character instead of byte-by-byte because it would know the output file and the database contents were both utf-8. But it might not, it really depends how the program doing the SQL reading/writing wants things to be. It's all a bit messy and confusing, but not really to do with ocPortal.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand