Jump to content

Archived

This topic is now archived and is closed to further replies.

Cei

WPML problem with images

Recommended Posts

Cei    0
Cei

Hello!

 

I've been looking through this forum and many others (wpml's as well) but I can't find the solution at my problem.

I have my main page in english and I am currently using WPML to translate my site in spanish and catalan. I don't have any problem for the english version but I am unable to upload some particular media in the translated pages. As you'll see in the attached screenshots, I cannot use the picture for my heading background from media library, and I cannot upload it again and use it in the translated pages. You will be able to see it in my page: www.ahotelroomstory.com. But if I try to upload some other pictures I have no issues.

 

I don't know why is this happening. Any help would be much appreciated.

 

Many thanks.[attachment=1892:ahrs1.png][attachment=1893:ahrs2.jpg]

 

I am using Version 2.9.1 of WPML Multilingual CMS and Pagelines DMS Free version.

Share this post


Link to post
Share on other sites
Cei    0
Cei

Okay so I changed from WPML because it was giving me some bad issues and changet to Qtranslate. Everything worked fine but I'm unable to write text in pages with language tags and I cannot see the content in the current language, instead I see all the languages. I attach the screenshot so it will be best for you to understand.

 

Many thanks

 

[attachment=1894:screenshotqtrans copia.jpg]

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

Hello @cei 

 

If the issue arises when using Qtranslate - first try disabling all other plugins to rule out a conflict. 

 

Then you would need to contact the plugin developer for support as it is a 3rd party piece of software not developed by PageLines.

 

You can request their support here  http://wordpress.org/support/plugin/qtranslate


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
Cei    0
Cei

Hi Martin,

 

Thanks for your answer. I already wrote a post see if anyone could help me, as it's impossible for the developer to assist me personally as the forum is collapsed with requests. 

I'm not an expert in coding, much less in php, so maybe there's something I am missing. Do I need to add a php code somewhere in the theme to make the text only show the current page language by getting the 'en' 'es' etc.. tags?

 

Thanks a lot

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, the developer of the plugin will be able to assist you but you'll need to contact them through wp.org to notify them of your issue/request.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
James B    436
James B

I've notified the team to check it out. Stefan is looking at it now and will get them to talk to the devs directly.

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Cei    0
Cei

Hi everyone again! I've been trying to work it out but I haven't succeed. The thing is that I'm able to insert the text in the Wp admin wheter it's a post or a page and then I see the correspon ding text according the current language on the web, so I assume qTranslate is working fine. But I can't find the way to do that through the DMS editor, writing directly in text boxes. Any idea which tags or system do I need to use?

 

Thanks

Share this post


Link to post
Share on other sites
Cei    0
Cei

For example... Should that work:

 

<code><?php if(qtrans_getLanguage() == "es-ES") : ?>
<h1>This is Spanish</h1>
<?php endif ?>
<?php if(qtrans_getLanguage() == "en-US") : ?>
<h1>This is English</h1>
<?php endif ?> </code>

 

it's not working for me.. my page language definition is lang="en-US" and lang="es-ES" (inside the html tag). If i write this in my textbox the two h1 appear. Any idea how to make that work?

 

I have my webpage almost done, that's the only problem I've got, and it's stopping me from finishing it :(

 

 

Thanks

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, is that the code that qtranslate provided? I'm not sure what they've advise you to do but a textbox inside DMS won't accept php code unfortunately, only text or html. In their documentation do they have any shortcodes or html options listed.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Cei    0
Cei

Hi James,

 

I took that php code from a forum, I didn't know php is not working on DMS.

 

But I've also tried the code qTranslate's developer recommends, and that you can see here:  http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3&sid=f83a52159b372122126217e5a65199a2&start=10

 

Ans that's what they tell you:

qTranslate uses language tags to identify different languages. They look like this:

CODE: SELECT ALL

<!--:en--><!--:-->

. Usually, when you don’t do anything fancy, qTranslate will take care of them for you. But if you want to have multilingual text in your templates or extra fields, you will need to use them. 
Quicktags are a shorter form of language tags and look like this:

CODE: SELECT ALL

[:en]

 

 

 

So I've tried different options but none is working. It seems the page is recognizing the longest tag (it shows the text but not the tag) but not the short tag (It shows both the tag and the text), and I've tried it this way:

[:en-US]English Title with -us      
[:es-ES]Spanish title with -es
[:en]English Title withOUT -us   
[:es]Spanish title withOUT -es
<!--:en-->text with en<!--:-->           
<!--:es-->texto con es<!--:-->
<!--:en-US-->text with en-US<!--:-->          
<!--:es-ES-->texto con es-ES<!--:-->

but it keeps on showing both english and spanish text. Any idea why is this happening? Many thanks

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, I've not used the qtranslate plugin so we'll leave this thread open in case another user can advise. Php does work in DMS, but not inside a post/page content if pasted directly and not inside a text box. You can get plugins like http://wordpress.org/plugins/shortcode-exec-php/ which will allow php to be rendered in those areas, so check that out. But from what you've written above it sounds like the tags should do the work in that type of section.

 

If you place the tags inside the standard postloop in the page/post content does it work from there? If it does then I'd imagine that the plugin is set to look for the tags in specific areas only as most standard themes won't have the additional drag and drop areas etc. Let me know and I'll see what our developer advises.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Cei    0
Cei

Hi James, I've tried translating posts and it works perfectly; I only have to translate the original post on the dashboard admin and if I switch the language on the posts page I can see every version in every different page. So I think that there must be a problem related to the textbox section that won't allow translations... If you can check it out it would be great. Thanks!

Share this post


Link to post
Share on other sites
Cei    0
Cei

Just for the record, I deactivated qTranslate and finally on the third attempt it came the good one.

 

I'm using Transposh: easy, fast and FREE! And after trying many more translation plug-ins that's the only one working properly for me on PageLines. Even though the developers said they would be leaving wordpress, today's latest version works perfectly.

 

So if anyone has any problem with it and Pagelines can feel free to ask..  http://wordpress.org/plugins/transposh-translation-filter-for-wordpress/

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Cei, that's excellent news, glad you got sorted, thank you for updating the thread.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

  • Similar Content

    • DonRicardoRVM
      By DonRicardoRVM+
      ¿Where can  I translate the english items "Orders", "Adress", "Payment Methods". "Edit Account" and "Sing Out"of the my account page of the plugin Quickshop? In the po file they are not.
      I think that it have relation with this error: "Your theme version of my-account.php template', '2.6', 'the latest version, which supports multiple account pages and navigation, from WC 2.6.0".

      I use the Frame Work Pagelines´s Child theme for platform 5.

    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      I have noticed that all thumbnails on www.michaelkummer.com are scaled down in CSS or HTML, rather than on the backend by Jetpack's Photon. See https://db.tt/vNJCn7Gh and https://db.tt/3ZpkHM7G. 
      Any idea why Pins sets the image width and height to something much larger than what's shown on the screen? Is there any way to fix this so that Photon can do a better job in rescaling the images on the backend before they are delivered to the browser?
      Thanks
      Michael 
    • sfmstudios
      By sfmstudios+
      I'm using the boxes section on a local development site to play around with some options, and running into an issue.  
      Have the following settings for the boxes:
      Type: Images/SVC Media on Top Image Appearance: Standard/Default Image/Icon Width: 280px Image Opacity: 100% Each of my box images is 280x150 in size, but the result of the image on the box is a strange zoomed-in, cropped square (see attached).  I looked to adjust border properties via CSS, but couldn't find a fix.  What solutions are out there?

    • fabienfons
      By fabienfons+
      Hi,
       
      I'd like to translate my website in french. (platform 5)
      How can i do ?
      Thanks
      Fabien
    • ppotent
      By ppotent
      It seems that whenever media is set to be on the left, there is a problem with the way safari displays them. I used to have boxes with media on left when i was using DMS2, but since PL5, I've had to use only media on top. I know there are a few css suggestions that people have offered, but I'm wondering if such suggestions can't be built into the boxes code for PL5 rather than having to add extra CSS. Otherwise, am really liking PL5 over DMS2.

×