Forum Replies Created

Viewing 15 replies - 241 through 255 (of 266 total)
  • Thread Starter jjbte

    (@jjbte)

    I am using the latest qTranslate-X version (2.9.8.4 from GitHub) and I activated Jetpack last night. To confirm my suspicions, I went to my General Settings page and clicked Save Changes. Sure enough, my Title and Tagline disappeared for all languages. I don’t know what it is about Jetpack, but it’s definitely the culprit here.

    Thread Starter jjbte

    (@jjbte)

    If you can’t reproduce the issue, it seems like it would have to be my theme or some other plugin. The two sites are running the same theme. When I first noticed the “//” the sites had one other plugin (AIOSEO) in common. I don’t recall if I had that plugin installed on the test site back when you first fixed the double language parameter issue (when I’m pretty sure the “//” issue did NOT exist).

    Anyway, please don’t fret over it. It’s probably not affecting anyone else, and it doesn’t affect the actual functionality of my site. The search feature is working as expected in all languages. The “//” is just a slightly annoying cosmetic issue that will likely go unnoticed by the majority of users.

    Thanks for looking into the issue and for all your time, effort, and help.

    Thread Starter jjbte

    (@jjbte)

    No, sorry… I only mentioned the WP issue because I had mentioned it in my original post, simply to point out that the gallery translation issue wasn’t just with Jetpack galleries.

    I have not yet figured out a fix for the WP issue. As I discussed, the qTranslate-X developer did partially fix it. As long as the Alt field has a value, everything is fine.

    I realize it can be tough to get all themes and plugins to work together, especially with a plugin like qTranslate-X. Ideally, I try to customize various styles and functions via my child theme, but the WP and Jetpack gallery functions are fairly complex and I haven’t come up with a good child-theme solution.

    Thread Starter jjbte

    (@jjbte)

    The “Known Issue” approach is a really good idea. In my opinion, if someone is posting “important” photos, they should be carefully filling in all the fields anyway. It’s usually considered good practice to include Alt text for photos/images.

    Thus far, I have not been able to pinpoint any code changes that might help with WordPress standard gallery translations. The “_e” trick produced unexpected and unsightly results for the caption, and I have not yet gone through all the wp-includes/media.php code to see just where the Caption and Title values are initially retrieved. If I get to that point and get any ideas on what plugin changes might help, I’ll try them on my test site and try the pull request thing if they work.

    The “//” thing is happening on both my test site and the real one I’m building. I’m pretty sure it was NOT happening back when you fixed the double language parameter issue, but I have no idea when it may have started. If I initiate a search, the results page URL has a double slash (example.com//?s=search1). If I use the language switcher on the search results page, the language changes and the URL’s double slash goes away (example.com/de/?s=search1). If I initiate another search, the double slash comes back (example.com/de//?s=search2). I normally have the “Hide URL language information for default language” box checked under qTranslate-X’s Advanced Settings. I tried unchecking that box to see if that might be contributing to the issue, but it made no difference.

    I hope that information helps you. The double-slash thing is quite harmless since any browser I’ve ever worked with is forgiving of double slashes. Plus I doubt the average user will even notice. If I come up with any other ideas about what code could be causing the problem, I’ll let you know.

    Thread Starter jjbte

    (@jjbte)

    Per your request, I created a pull request for the changes I made to the two files Jetpack discussed (carousel-image-args.php and item.php). I hope I did everything correctly since I have never worked with GitHub beyond downloading applications.

    Over the past day, the qTranslate-X author also made some changes that did fix some of the photo gallery issues for both WordPress and Jetpack galleries. His fixes enabled proper translation for Caption and Alt in WP standard galleries. However, if the Alt field is empty, WP substitutes the Caption or Title if they have values. In this case, the Alt value is NOT translated properly.

    For Jetpack tiled galleries, all but the Alt value get translated properly. For Title, Caption, and Description, his fixes work with or without the changes I made to the two Jetpack files discussed here. My change to item.php is still necessary to get the Alt value to translate properly.

    In addition, his latest changes did NOT fix the Jetpack Twitter share button issue I discussed previously.

    If you wish to take a look at the latest version of qTranslate-X, the author has been posting alpha versions in his own GitHub repository. I believe this fork of qTranslate, which was quite popular from what I have read, is the winner among the different forks that came to be after the original qTranslate plugin ceased development. The other forks seem to have died off already, while the qTranslate-X author has been very helpful and responsive.

    Thank you for your response. I like many of Jetpack’s features, and I especially like the ability to create small, attractive photo galleries without the need for a whole separate plugin.

    Thread Starter jjbte

    (@jjbte)

    You’re my hero!!! Caption and alt tags are being translated properly for standard WordPress galleries. If all image properties–Title, Caption, Alt, Description–have values, WP gallery uses Alt and Caption accordingly. It does not appear to use Title and Description at all.

    However, if Alt is empty for a given image, the wp_get_attachment_image function in wp-includes/media.php looks first to the Caption field and then to the Title field as a substitute for Alt. In either of these cases, the Alt value is NOT translated properly. So the Caption is translated properly for use as a caption, but not when it is used as a substitute for Alt. This is a very minor issue IMO. I usually fill in all fields for important photos, and not many users actually see the Alt text.

    For Jetpack galleries, all fields are now translated properly except for Alt. I did post about this and other minor translation issues in the Jetpack forum yesterday and they’ve asked me to post a pull request on their GitHub page, which I will try to do later today.

    I also looked at various other areas since you asked me to test. On my test site, I toggled the Hide Content setting to see the results. Either way, behavior is still as expected. When content is hidden, non-active language content, including menu items, do not appear. When not hidden, links to other-language content appear and work properly.

    I did notice one minor issue that may have existed before and I just didn’t notice. I recall you recently fixed an issue with double language parameters appearing in the URL when using the Search feature. Search is still working fine in all languages, but I noticed a double slash (//) appears before the query string in the URL when searching.

    Otherwise, I basically navigated around both my test site and the live site I’m building. I switched among my active languages and everything is working as expected, both in the web pages themselves and in their source code.

    The Admin area still seems fine as well. In fact, it looks like you even fixed the theme preview pane issue I recently read about in another thread.

    If there is something specific you’d like me to test, let me know and I’ll try. Thanks again for working so hard, and for being so attentive and responsive.

    Thread Starter jjbte

    (@jjbte)

    In researching WordPress gallery translation, I came across discussions of various gallery plugins having translation issues. I have not specifically looked for gallery plugins that translate properly. I’m trying to avoid adding another plugin. I only need a few pages to display some nicely arranged photos, so adding/maintaining another plugin just for that isn’t practical for my situation.

    I’m not an advanced programmer, and I am not intimately familiar with WordPress code. I have pinned down some of the files involved in both WordPress and JetPack gallery functions. Unfortunately, I can’t seem to find any possibilities for filters we could enable for translation.

    For the WordPress default gallery function, I thought simply applying the _e function to the caption would work, but I tried it on my test site and it just caused other issues:

    In wp-includes/media.php, changing line 1083 from

    wptexturize($attachment->post_excerpt)

    to

    wptexturize(_e($attachment->post_excerpt)) or _e(wptexturize($attachment->post_excerpt))

    did allow the captions to be translated, but it also caused them to appear in a single line at the top of the page rather than appearing over the photos upon hovering. I know changing core WP files isn’t a desirable solution anyway. I just wanted to try it.

    Since I will be using JetPack anyway, I intend to use its tiled galleries for my photo display pages. On my test site, I was able to add _e (or change esc_attr to esc_attr_e) to title, alt, caption, and description lines in “jetpack/modules/tiled-gallery/tiled-gallery/templates/partials/carousel-image-args.php” and “jetpack/modules/tiled-gallery/tiled-gallery/templates/partials/item.php” and achieve the desired results, even with “wptexturize( _e( $item->image->post_excerpt ) );”–the same code that does not work properly when tried in wp-includes/media.php above. That may have to be my “last resort” solution on my real site.

    I think I am going to try asking about this issue in the JetPack forum, but I’m not particularly confident I’ll get any help.

    Thank you for looking into this. You’ve really done a lot to fix various issues with this plugin. Maybe we’ll figure this one out at some point. I will keep looking over the code when I can, and I’ll let you know if I find any info that might actually be useful to you. Thanks again. 🙂

    Thread Starter jjbte

    (@jjbte)

    Because I have suspected JetPack as the cause of this and other translation issues, I have been working with a WordPress installation with just qTranslate-X installed. I finally I had a chance to insert a photo gallery this evening and there are issues even with WordPress’s own gallery functionality. I can’t say whether there are issues with the image title attribute because WordPress galleries don’t appear to include that attribute, but the image caption is definitely not translated properly. The multilanguage captions all appear together with no spaces between. In the source code, they appear with the <!– tags between them. On the other hand, the image alt tag is translated properly.

    On the Edit Media page, The ID of the Caption input (textarea) is “attachment_caption.” I tried adding this to the ID field under Custom Fields on the qTranslate-X settings page, but it didn’t help.

    I am using the latest version from GitHub (2.9.8.1). Can you confirm that photo galleries are translated properly with a theme like Twenty Fifteen? I want to get to the bottom of this issue. If gallery translation works in other themes, then I’ll know the issue is related to my theme and I’ll ask its developer for help. Thanks so much.

    I have not seen any issues with titles and descriptions for home page, posts, or pages. The only issue I’ve seen concerns keywords on pages. This issue likely affects posts as well, but I don’t have any posts on this site yet, only pages thus far.

    I am using the Nirvana theme and I don’t currently have any other plugins activated besides qTranslate-X and AIOSEO. Also, I am using the developer’s next-to-latest version (2.9.7.7) from GitHub, not the version currently available from WordPress. The developer has been working very hard trying to address various bugs that were actually in the original qTranslate. He has been asking users to test beta versions from GitHub while he tries to produce the next stable version for WordPress download. He added 2.9.7.8 yesterday, but I have not had a chance to try it yet.

    I do thank you for trying to figure this out. AIOSEO is a very nice plugin from what I’ve seen thus far. I intend to use it on future sites as well. And I do not anticipate many more multilanguage sites in my future. 😉

    For my site, the AIOSEO home page and description tags ARE being translated properly. I am using the [:en] type tags (as opposed to the <!–:en–> tags).

    Interestingly, my home page keywords are also being translated properly even though they’re not for pages, where I have tried both tag types for the keywords field. The [:en] tags just appear in my source code as they are, and the <!–:en–> tags have their < and > converted to entities. The only real difference is that the page/post keywords field is a text box, while the home page keywords field is a textarea.

    I’m not really concerned about the keyword thing since, as you noted, they really don’t mean anything these days. I am not ready to go live with the site yet, so I figured I’d add keywords now and disable them for posts/pages if they’re still not translating properly when I’m ready to go live.

    Thanks again for your reply and additional info.

    Thank you for you reply, wpsmort. I looked at the various qTranslate forks that emerged after the original qTranslate apparently ceased to be developed/supported. I ended up choosing qTranslate-X. I believe the developers of some of the other forks actually decided to join the qTranslate-X developer. During my search, I did look at qTranslate Plus, but I was turned off by the fact that it had not had any updates since October and its WP compatibility is listed as 4.0.1.

    Anyway, qTranslate-X has been working pretty well for me and the developer(s) of that plugin is/are very hard-working and attentive. I need a plugin like qTranslate-X because I am using a theme (https://wordpress.org/themes/nirvana) that has a special presentation page with its own content fields. These fields work with the language tags used by qTranslate and its various forks.

    For the record, qTranslate-X is working pretty well with AIOSEO for me. Except for meta keywords, I am seeing language-specific meta tags, as well as OG and Twitter Card tags. However, I do know of at least one other user who is having issues with the meta description field.

    When you’re in the editing area for a page/post, the SEO input fields appear below everything else. If you right-click on any input field, a menu should pop up. Choose Inspect Element from that menu and you will see the source code for the element. From that, I saw the name of the SEO meta description textarea is “aiosp_description.” It does not have an id or class, though. Since name is like ID in that it should only appear once on a page, I thought the name attribute could be used in the ID box in the qtrans Custom Fields section. I’m sorry it didn’t help you.

    I’m not intimately familiar with this plugin’s code, but I am thinking maybe it’s possible for the qtrans author to add support (in the Custom Fields section) for the name attribute in addition to ID and class. Maybe that would help in situations like this.

    Don’t give up, though. This author has been extremely helpful and attentive in trying to work out the various bugs people have reported. I have already seen a few of my issues resolved. I’m glad I chose this particular fork of qTranslate rather than the handful of others out there. 🙂

    Regarding the answer in the SEO plugin thread: Wow, that’s a pretty rude response IMO. I posted asking what multilanguage plugins they do support. Let’s see if they answer. I guess I won’t bother writing that previously discussed post over there.

    I can’t imagine why my description works and yours does not. I like WordPress a lot, but plugin/theme conflicts can be really frustrating.

    The only other thing I can think to suggest is to add “aiosp_description” to the Custom Fields section of the qTranslate-X settings page. Also try prepending it with a [ bracket.

    Also, I did check the box for Compatibility Functions on the qtrans settings page. I’m doubtful that is helpful in this case, though. The only reference to qtranslate I see in the SEO plugin is for the qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage function (line 2449 of aioseop_class.php).

    Are you using the latest qtrans version from GitHub? If not, give it a shot if you can. It did fix a few quirks for me.

    Hello, wpsmort. What multilanguage plugins do you support? Many site owners do have a need for multilingual sites.

    I am using q-Translate-X with All in One SEO Pack. Except for the keywords field, it is working fine for me, both for the regular meta tags and Open Graph/Twitter Card tags.

    For the Title field, the <!–:en–> type tags are used by default and it seems to work properly.

    For the Description field (textarea), the <!– type tags do not work even though we are generally supposed to use those for textareas. I tried the [:en] type tags and the Description field now works properly.

    The Keywords field (text input) does not work with either type of tag. As with the Description field, the <!– tags have their < and > converted to entities. The [:en] tags cause the keywords to appear just as I entered them, tags and all.

    Example: [:en]english, keywords[:de]german, keywords[:es]spanish, keywords[:pt]portuguese, keywords

    The SEO Keywords input field in the page/post editor has the name “aiosp_keywords,” but no ID or class. I tried listing “aiosp_keywords” in the id field under the “Custom Fields” section in the qTranslate-X settings area, but it didn’t help, even if I prepended the name with < or [.

    Because the Title and Description fields do work, I’m thinking the issue is more likely to be with All in One SEO Pack rather than qTranslate-X. I may post in the other plugin’s support forum at some point, but this is a minor issue for me since keywords aren’t really important anymore. I may just disable them.

Viewing 15 replies - 241 through 255 (of 266 total)