Not signed in (Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

RecentTags

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

This discussion has been inactive for longer than 90 days, and is thus closed.
    • CommentAuthorsilencio
    • CommentTimeOct 6th 2006
     permalinkBuy a Drink
    Hey did anyone find a small USA Flag for the Translator program?

    Charlie
    • CommentAuthorDenis
    • CommentTimeOct 6th 2006
     permalinkBuy a Drink

    there was one in previous versions of the pro package, in the wp-content/plugins/flags folder, if anyone still has them.

    D.

    •  
      CommentAuthorJeff
    • CommentTimeOct 7th 2006 edited
     permalinkBuy a Drink
    I just sent Denis a US flag of the same dimensions as the others, I just deleted a few old versions so may have had one until a few days ago, don't now for sure so I made one.

    Perhaps Denis can place the image on his server to distribute?

    Now, can someone tell me what I need to do to get this image in the translator bar?

    (I am using the "other" version of the translator still.

    sminc
    • CommentAuthorDenis
    • CommentTimeOct 7th 2006
     permalinkBuy a Drink

    us flag attached.

    • CommentAuthorsilencio
    • CommentTimeOct 7th 2006
     permalinkBuy a Drink
    Thanks for that Flag. I tweaked it a bit so if you like it you are welcomed to use it.

    Sminc, I can tell you where to put this image. In the old version to to wp-content\plugins\flags and replace the image flag_en.gif there.

    In the new 4.2 version go to \wp-content\plugins\global-translator to replace the image there.

    I had to do an F5 to refresh to be able to view the new flag.

    Also in case you are interested Denis showed me how to edit the php to remove some of the flags that I didn't feel that I needed and you would do that, in the new 4.2 version here: wp-content\plugins\global-translator\translator.php and you would go to about line 104 to find this and look for line 110 (could be different for you)

    }

    function getAvailableTranslationsMap() {
    return array(
    'it' => array('en'),
    'ko' => array('en'),
    'zh-CN' => array('en'),
    'pt' => array('en'),
    'en' => array('it','de','es','fr','pt'), (and you would edit it here by removing ones you don't want, I have edited this)
    'de' => array('en','fr'),
    'fr' => array('en','de'),
    'es' => array('en'),
    );
    }

    Hope this helps.

    Charlie
    • CommentAuthorsilencio
    • CommentTimeOct 7th 2006
     permalinkBuy a Drink
    Denis,

    How could I add an image alt tag to show up when you hover over the flags? I would like to identify the language of the flags by using an alt tag if I could. Thanks.

    Charlie
    •  
      CommentAuthorJeff
    • CommentTimeOct 7th 2006 edited
     permalinkBuy a Drink
    Thanks Charlie, your flag is much nicer, I could not figure out how to make the stripes sharper like you did. I also see now how I could have attached the flag to my post in the first place, sorry for the additional trouble.

    @Denis, I have been changing the plugins/translater.php to translator.txt as to not over write the old version of the translator. I did not notice that there was a new folder in there called global-translator that I assume is related to the new open source translator? But there is still a file called translator.php in there and that is what I have been editing so I did not replace the original translator.

    Denis, is the new translator equally as functional as the original one was in that the pages are dynamically generated and bookmarkable and searchable in the SE's once generated, etc? In other words is there any reason to hang on to the older version?

    Also, is there any way to make the change to the US flag an option, not something we have to remember to edit each time there is an upgrade? If it were just my blog is one thing, but if I am hosing several at some point, I don't want to have to remember this edit every upgrade.

    Thanks!
    •  
      CommentAuthorJeff
    • CommentTimeOct 7th 2006 edited
     permalinkBuy a Drink
    Charlie,

    I just noticed that when I hover over the flags with blogs using the old version of the translator I get the descriptive alt tag. I have not tested hovering on blogs using the "open source" translator.

    sminc
    • CommentAuthorsilencio
    • CommentTimeOct 7th 2006
     permalinkBuy a Drink
    sminc,
    Thanks I will check out the code for the old one to see if I can figure it out. I thought it used to have image alt tags.

    Charlie
    • CommentAuthorDenis
    • CommentTimeOct 10th 2006
     permalinkBuy a Drink

    I added alt and title information to the next version of the plugin, which will be in the next Release Candidate.

    D.

    •  
      CommentAuthorJeff
    • CommentTimeOct 10th 2006 edited
     permalinkBuy a Drink
    Denis,

    A couple posts up I asked about the functionality of this new translator as compared to the old one. Is the new translator just as functional as the old one?

    Also, what about the US/UK flag issue, is there a way to make this an option to choose in each download so we don't have to remember to upload the US flag every time there is an upgrade?

    Thanks!

    sminc
    • CommentAuthorDenis
    • CommentTimeOct 10th 2006 edited
     permalinkBuy a Drink

    There are a few less options, e.g. there isn't the fancy option to choose your flag, etc. But as far as translations and SEO go, it's the same thing.

    For the US flag, rename the us flag as 'flag_en.gif', and drop it into:

    wp-content/plugins/global-translator
    

    If you do this before uploading the files, you won't need to worry about it any longer.

    D.

    •  
      CommentAuthorJeff
    • CommentTimeOct 10th 2006
     permalinkBuy a Drink
    In the 4.2 RC, there is a folder as noted above:

    wp-content/plugins/global-translator

    Within that folder there is the UK version of "flag_en.gif". Each time sem is updated, that folder is copied to the server. Does this not mean EACH time you upgrade, you NEXT have to copy the US version into the global-translator folder on the server or am I missing something?

    sminc
    • CommentAuthorDenis
    • CommentTimeOct 10th 2006 edited
     permalinkBuy a Drink

    that would indeed be the way to go until I (or someone else) add the option in there (I'll get it done by this WE).

    D.

    •  
      CommentAuthorMike_K
    • CommentTimeOct 11th 2006
     permalinkBuy a Drink
    Well... I added the option to choose flags before with the previous version. I'll make the change for the new translator as well.

    Mike
    • CommentAuthorDenis
    • CommentTimeOct 11th 2006
     permalinkBuy a Drink

    @Mike: Arun is taking care of this already. :-)

    D.


This discussion has been inactive for longer than 90 days, and is thus closed.