Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • petrahk Friend
    #162376

    Hi,
    I have to issues with poll:
    a) I woudl like to change the font in the submit button. Which file should I change?
    b) I would like to translate the poll results to my language (hits, percent, graph), but I did not find the right file…

    Thank you for your advices…
    Petra

    aman204 Friend
    #384874

    a) You can change this::

    form.poll .button {template.css (line 538)
    margin-right: 5px;
    }

    to

    form.poll .button {template.css (line 538)
    font-family: arial,helvetica;
    margin-right: 5px;
    }

    and change font-family accordingly

    Css file reference:::
    plugins/system/jat3/base-themes/default/css/template.css

    petrahk Friend
    #384875

    Thank you AMAN.
    That is for font. And translation?
    Many thanx!

    aman204 Friend
    #384877

    <em>@petrahk 232284 wrote:</em><blockquote>Thank you AMAN.
    That is for font. And translation?
    Many thanx!</blockquote>

    1) For translation, You can go to this file::

    plugins/system/jat3/base-themes/default/html/com_poll/poll/default_graph.php

    and then, change this::

    <th id=”itema” class=”td_1″><?php echo JText::_( ‘Hits’ ); ?></th>
    <th id=”itemb” class=”td_2″><?php echo JText::_( ‘Percent’ ); ?></th>
    <th id=”itemc” class=”td_3″><?php echo JText::_( ‘Graph’ ); ?></th>

    to

    <th id=”itema” class=”td_1″><?php echo JText::_( ‘HITS’ ); ?></th>
    <th id=”itemb” class=”td_2″><?php echo JText::_( ‘PERCENT’ ); ?></th>
    <th id=”itemc” class=”td_3″><?php echo JText::_( ‘GRAPH’ ); ?></th>

    2) Add this at end of language file (en-GB.ini) ::

    <blockquote>HITS= Hits
    PERCENT= Percent
    GRAPH=Graph</blockquote>

    and update the text after = sign accordingly

    petrahk Friend
    #384880

    The translation works fine, the button is still the same. Cache is cleared…
    ANy idea?

    aman204 Friend
    #384882

    <em>@petrahk 232290 wrote:</em><blockquote>The translation works fine, the button is still the same. Cache is cleared…
    ANy idea?</blockquote>

    Can you provide a link to your site and also, to confirm, Are you looking forward to change font-family as suggested earlier or something else ?

    petrahk Friend
    #384883

    URL:http://www.gynweb.cz/gynekologie
    font change to: calibri or arial (poll is a module on left)
    Many thanx!!!!

    aman204 Friend
    #384884

    Please ensure that you only have this::

    form.poll .button {
    font-family: arial,helvetica;
    margin-right: 5px;
    }

    and not

    form.poll .button {template.css (line 538)
    font-family: arial,helvetica;
    margin-right: 5px;
    }

    as I am unable to see whole reference not coming into effect

    petrahk Friend
    #384887

    <em>@aman204 232294 wrote:</em><blockquote>Please ensure that you only have this::

    form.poll .button {
    font-family: arial,helvetica;
    margin-right: 5px;
    }

    and not

    form.poll .button {template.css (line 538)
    font-family: arial,helvetica;
    margin-right: 5px;
    }

    and I am unable to see whole reference not coming into effect</blockquote>

    oh yes…
    I had
    [PHP]form.poll .button
    font-family: calibri;
    margin-right: 5px;
    }[/PHP]
    instead of
    [PHP]form.poll .button {
    font-family: calibri;
    margin-right: 5px;
    }[/PHP]
    Many thanx, AMAN! 🙂

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 2 voices, and was last updated by  petrahk 13 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum