WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
[resolved] Translations only shown if I "fix database errors&quo (19 posts)

  1. ChemaZ
    Member
    Posted 1 year ago #

    Hi,

    Transposh works wonderfully in my PC, but not so with my hosting provider. There, when I translate something, the text changes, tuple is added to wp_translations, everything looks alright; until I reload the page, then the translation is not shown anymore. This is a fresh WordPress 3.4.2 install (I also tested with 3.4.1) and Transposh 0.8.5:

    http://goo.gl/9YfLC

    If you click on translate "Pozdravljen svet" (Hellow world, the title), for example, you can see it's already translated in the history, and if you translate it again, the english text will disappear as soon as you reload the page.

    All the translations do appear when I "fix errors by previous versions", however. But I can't ask my users to do that after every translation, of course.

    I see that db_maint recreates Transposh's relations, eliminates dupes and also clears the cache several times with cache_clean and cache_delete. wp_translations looks just fine:

    To je vaš prvi prispevek	en	This is your first post	0
    Dobrodošli v WordPress	en	Welcome to WordPress	0
    Neuvrščeni	en	Unlisted	0
    Vzorčna Stran	en	Sample Page	0
    Dobrodošli v WordPress	hr	Dobrodošli na WordPress	0

    so it's probably a caching issue. It's a fresh install, however, and I didn't had any caching engine. I just installed WP Super Cache to see if it changed anything, but it didn't. I'd really like to get Transposh working. Do you have any suggestions?

    Thanks in advance.

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Again ;)

    Looks like a caching issue, I totally agree, can you disable supercache? so I can look at what happens without this added layer of complexity?

    Also, do you have apc/xcache/whatever on your server? can you use the constants.php file and disable caching altogether?

    Good luck

  3. ChemaZ
    Member
    Posted 1 year ago #

    Super Cache disabled. The server runs XCache 1.3.1 and memcached 1.4.10, but being shared hosting I'm afraid I can't turn them off.

    I see Transposh supports both of them, but could there be a problem from having both simultaneously? I'm not familiar with the inner workings of caching, though perhaps it's about time...

    If you'd be so generous with your time and want admin access, just let me know. ;)

  4. ChemaZ
    Member
    Posted 1 year ago #

    Oh, options.php is Transposh's! Disabling caching eliminates the problem instantly, all the missing translations appear and new ones show up without having to "fix database errors." So I will re-enable it to troubleshoot the problem.

  5. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    I guess it is an xcache issue, when the site has no self memory (shared environment). I have limited visibility of the problem, but will probably have better in the coming version of Transposh.

    For now, just disable the caching.

    If you see anything on your error logs, let me know.

  6. ChemaZ
    Member
    Posted 1 year ago #

    Alright, I will do that.

    One last thing: the FAQ states that I can "mark a post with a language ... with a select box that appears below the post", but for the life of me I can't find it. Does it shows in a box like Custom Fields? Do I have to do something to enable it?

    Thanks again!

  7. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Try the screen options at the top of the post, maybe it is not selected... :)

  8. ChemaZ
    Member
    Posted 1 year ago #

    I did check those, of course. I'm not *that* new at WordPress. ;)

    Looking at the code, I see it only appears when "automatic translation after posting" is enabled, as per if ($this->transposh->options->get_enable_auto_post_translate()) in transposh_postpublish.php.

    I made a patch to make it always appear without a forced machine translation --which I dislike-- and submitted it to your trac.

  9. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Wanted to thank you for your submissions to the trac, really appreciated.

    I would like to give you credits on the next version release notes, please contact me via the contact form on my site.

    :)

  10. ChemaZ
    Member
    Posted 1 year ago #

    Oh, about those, give me a minute to review them, I ran into problems and reverted them. I haven't found time to familiarize myself enough with Tranposh's internals, so it was not a surprise it happened. :P

  11. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Didn't used them directly as is ;) but they were quite good and you deserve that credit

  12. ChemaZ
    Member
    Posted 1 year ago #

    (argh, system frozen dead, REISUB restart required... not what you want to see on a fresh Kubuntu install! >.<)

    Yes, I reverted transposh_postpublish.langmetabox_always.patch​ since it provoked some nasty problems, and haven't played more with it. Sorry for the noise, hopefully I'll get it right in the future as I expect to use Transposh in new projects. Only then we'll talk about any credit. :)

    The z-index patch is good though (it'd better! It's so small).

    I planned to say this before on your trac, of course, but I couldn't see "My Tickets." I thought you had to approve them or something, and then, of course, I forgot all about it. I still can't see My Tickets though (should I submit a ticket about it? :P), so seems searching is the only way to find them.

    [...reads your reply...]

    Oh, if you did fix my broken patch, then I can't wait for the new version!

  13. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    First - use gentoo :) if it gets stuck, than you can blame yourself
    Second - credits, as you wish, I respect that, both patches will make the next version, including the fixed one

    Regarding the tickets, I am sometimes slow in approving stuff and responding, this is better than the occasional spam tickets that made it through, which I am the only one to see now...

    They will be live in the coming days, sorry about that.

    Thanks again, and any further patches are always welcomed

  14. ChemaZ
    Member
    Posted 1 year ago #

    Oh, Gentoo is on the list, though not nearly the top --that would be Arch. ;)

    I completely understand, so don't worry. I'm trying to cut down my screen hours myself, though the stern look of Workrave's sheep somehow has not been too effective so far... ;)

    All I meant to say is that there seems to be a bug in trac (though it's too big to pass unnoticed): when I go to View Tickets -> My Tickets I get "No matches found." Going to Active Tickets, Mine first doesn't shows mine first either. So the only way for me to find my tickets is searching. I only realized this today, and that's why I had forg^H^H^H^H postponed commenting on my patch. :)

    I'll gladly submit more fixes (thoroughly tested this time!) when I find some rough edges. Cheers!

  15. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Just to let you know that your patches made it through...

    Also - why Arch over Gentoo :) ?

  16. ChemaZ
    Member
    Posted 1 year ago #

    Neato!

    Arch over Gentoo... because I don't have to compile everything myself, for starters! ;) The times where I wanted to do everything by myself are long past; the true men that wrote their own device drivers are near extinct, so I don't feel too bad. ;) Nowadays I settle for the path of least resistance...

    I used mostly Debian on my sysadmin years, and it's hard not to fall in love with its internals (more so coming from the old Red Hats), and specially, its community, for practical and philosophical reasons. Ubuntu is more polished and mainstream (almost everyone packages for it), so it has become the easiest distro, if not for most people, certainly for me --though it sadly lacks all the other virtues of Debian.

    Still, I manage to crash something on daily basis, so I get more bug squash juice than I would like; KDE and Firefox I report directly upstream, but Ubuntu stuff I just don't bother anymore; as nice as it is, Launchpad is mostly a ghost town.

    So I dream of a highly polished distro with great QA and some hippie flavoring too, with active maintainers and a knowledgeable community. Hey, one can dream! I'm actually happy enough with Ubuntu, have been so for some seven releases. But it's always good to compare quality and get some variety --unless you're married, to a distro or otherwise. ;)

    Arch looks more approachable for someone that wants thing to just work, but with a good community to fall back when they don't. I'm also curious on how different a rolling distro could be from Debian's testing or unstable branches, as I dislike following a frozen branch more every day (gotta rely on 3rd party backports, upgrades take long and everything that has to break does so simultaneously).

    Gentoo's community looks pretty strong, but it seems too much work just to squeeze a few extra cycles (maxing my RAM had the biggest impact I could hope for already; though SSDs are quickly approaching us 3rd world mortals).

    Phew, so there; ball's in your court. Your turn to do a Gentoo pitch. ;)

  17. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    The Gentoo pitch? yes, no problems.

    One, I am not doing any compiling, the computer is, yes, it takes time, but its not my time, rather a cpu time, and the i7 is a really mean machine.

    The other point in favour of Gentoo, goes to the plain fact that my system is using Gentoo since 2002 (or 2003, don't kill me) and I have just been upgrading it, software and hardware, I think this is the hardware's 5th or 6th iteration, going from Intel to AMD and back again, from HD to SSD and from Ati to Nvidia. And I never had to do any full reinstalls, unlike for example my eee which is stuck on some old whatever ubuntu version I last insatlled on it (firefox 3.6 anyone?)

    Its fast, and I believe that I am able to understand what is going on inside my machine, a thing I have always appreciated, and it is really easy to test new stuff on it.

    However, it is not for everybody, and it does have a learning curve. but if you are into changing, maybe you should give it a go.

  18. ChemaZ
    Member
    Posted 1 year ago #

    I don't have an i7 you insensitive clod! Some of us still walk about with just two dusty cores --good old Thinkpads just keep on going, bless Lenovo's wacko engineers: building things to last! Crazy!. Besides, gotta think of the environment, the children, and all that. ;)

    Well, only Windows requires regular full reinstalls these days me thinks. I only reinstalled Kubuntu because I changed my laptop's HD, but the old one went through six upgrades just for Ubuntu. The main difference I see between Ubuntu and rolling distros is that with Ubuntu you get to fix everything simultaneously every six months, while a rolling distro gets the problems to you earlier and more spaced.

    But what about QA? Following Debian testing or unstable can't be too different from having Gentoo, though I'm not sure, how much testing Gentoo does before releasing a new upstream version? Debian unstable gets you the latest and greatest version ASAP, but those may include a few nasty bugs. Debian testing seems like the sweet spot: it automatically gets the packages that have "survived" 2-10 days (depending on the urgency) in unstable without nasty bug reports.

    As for performance, what I've read (from Gentoo enthusiasts themselves) is that you won't notice any difference unless you are doing something computationally intensive (and you know the right flags for compiling).

    And no, I don't wanna kill you, not even pop your bubble. :P I will try Gentoo, it's already on my list, though not near the top. ;) The most interesting bit you mention is changing graphic cards. I take you use proprietary drivers? I had to opt between proprietary drivers and hybrid graphics, and hybrid won, but uninstalling ATI's driver was a mess. Though now that Steam is coming... that changes everything. ;)

  19. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Well,

    First, not sure linux on laptops is the best solution, I am having some good old desktops here while the laptops are running xp just fine (or whatever os was preinstalled), the battery regressions in the kernels are just too many for me to follow :)

    Well, gentoo is quite stable, tons of testings for packages marked as stable and a very good community, I am not running the unstable variant, but rather for some packages that I really want bleeding edge for (such as chrome, firefox) I set the appropriate flags and get a good working system, with some bleeding edge, doing that in the far past with mandrake and redhat dragged me into a package hell.

    For even more bleeding edge, I am normally just able to compile what I need, as the environment is quite setup for this, so normally make does the trick.

    Performance wise, it is fast, and in many tests beats other distros, in the past I mangled compile flags, but for now I am just using the -march=native, which is really good for some code.

    Regarding killing me and games, don't worry, I have so little time left for games, so I settle for the games on the tablets which has kinda replaced the casual flash games of the past. And I am doing a swell job on killing myself ;) worry not.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic