[TYPO3-english] new flag-Icons in T3 4.5?

2011-09-05 Thread Bernd Wilke

in one installation we misuse the languages for a mobile-version.
but which flag can we use for showing in the BE?

the flags are provided via spritemanager.

just inserting new icons in the directory 
/typo3/sysext/t3_skin/images/flags/ does not show them in the selection.


how is it posssible to extend the range of 'language/country-flags'?

bernd
--
http://www.pi-phi.de/cheatsheet.html
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] new flag-Icons in T3 4.5?

2011-09-05 Thread Kay Strobach

leave the fileending blank


Am 05.09.2011 11:05, schrieb Bernd Wilke:
> in one installation we misuse the languages for a mobile-version.
> but which flag can we use for showing in the BE?
> 
> the flags are provided via spritemanager.
> 
> just inserting new icons in the directory
> /typo3/sysext/t3_skin/images/flags/ does not show them in the selection.
> 
> how is it posssible to extend the range of 'language/country-flags'?
> 
> bernd


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3  inspiring people to share!
Get involved: http://typo3.org

Answere was usefull: https://flattr.com/profile/kaystrobach
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] new flag-Icons in T3 4.5?

2011-09-05 Thread Bernd Wilke

On 09/05/2011 07:57 PM, Kay Strobach wrote:


leave the fileending blank


how this?
rename 'mobile.png' to 'mobile'?

this is not about renaming the default-language!

inside the language-record there is no possibility to insert a 
(flag)name manualy, just a wizard (selection) with all flags but mine.


And using phphmyadmin to insert the new flagname by hand does not 
provide a flag in the BE either.





Am 05.09.2011 11:05, schrieb Bernd Wilke:

in one installation we misuse the languages for a mobile-version.
but which flag can we use for showing in the BE?

the flags are provided via spritemanager.

just inserting new icons in the directory
/typo3/sysext/t3_skin/images/flags/ does not show them in the selection.

how is it posssible to extend the range of 'language/country-flags'?

bernd





bernd
--
http://www.pi-phi.de/cheatsheet.html
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] new flag-Icons in T3 4.5?

2011-09-06 Thread Kay Strobach

> this is not about renaming the default-language!
> 
> bernd

Thought it was - sry - was to fast with reading :(

Regards
Kay
-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3  inspiring people to share!
Get involved: http://typo3.org

Answere was usefull: https://flattr.com/profile/kaystrobach
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] new flag-Icons in T3 4.5?

2011-09-06 Thread Björn Pedersen
Am 05.09.2011 11:05, schrieb Bernd Wilke:
> in one installation we misuse the languages for a mobile-version.
> but which flag can we use for showing in the BE?
> 
> the flags are provided via spritemanager.
> 
> just inserting new icons in the directory
> /typo3/sysext/t3_skin/images/flags/ does not show them in the selection.
> 
> how is it posssible to extend the range of 'language/country-flags'?
> 
> bernd
Hi,

The git version of extdeveval has a command to regenerate the sprites,
so you probably have to do that to get your flags into the sprite.

Björn

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] new flag-Icons in T3 4.5?

2011-09-21 Thread Bernd Wilke

On 09/06/2011 04:28 PM, Björn Pedersen wrote:

Am 05.09.2011 11:05, schrieb Bernd Wilke:

in one installation we misuse the languages for a mobile-version.
but which flag can we use for showing in the BE?

the flags are provided via spritemanager.

just inserting new icons in the directory
/typo3/sysext/t3_skin/images/flags/ does not show them in the selection.

how is it posssible to extend the range of 'language/country-flags'?

bernd

Hi,

The git version of extdeveval has a command to regenerate the sprites,
so you probably have to do that to get your flags into the sprite.


also the TER-Version (3.2.2). But it does not include new flags into the 
generated sprite. if it generates the flags-sprite at all. I only 
noticed a rebuild of the t3skin-sprite (with a lot of messed up icons!!!)


bt extdeveval gave me a hint how to integrate my icons into TYPO3:

You can use any of these icons with:
t3lib_iconWorks::getSpriteIcon($icon); You add further icons from your 
own extension using:


// ext_tables.php:
$icons = array('extensions-myextension-icon1', 
'extensions-myextension-icon2');
t3lib_SpriteManager::addIconSprite($icons,t3lib_extMgm::siteRelPath('myextension') 
. 'myextension_sprite.css');


// myextension_sprite.css:
.t3-icon-extensions-myextension {

background-image:url(../../typo3conf/ext/myextension/myextension_sprite.gif);
}
.t3-icon-extensions-myextension-icon1 {background-position: 0px 0px; }
.t3-icon-extensions-myextension-icon2 {background-position: 0px -16px; }

$icons1 = array('flags-mobile', 'flags-mobile-overlay');
t3lib_SpriteManager::addIconSprite($icons1,t3lib_extMgm::siteRelPath('add_mobile_flag') 
. 'icon.css');



so I don't want extension-...-icons but flags-mobile I changed it to:
$icons1 = array('flags-mobile', 'flags-mobile-overlay');
t3lib_SpriteManager::addIconSprite($icons1,t3lib_extMgm::siteRelPath('add_mobile_flag') 
. 'icon.css');

and
.t3-icon-mobile.t3-icon-flags-mobile {background-position: 
0px 0px; 
background-image:url(../../typo3conf/ext/add_mobile_flag/mobile.png); }
.t3-icon-mobile-overlay.t3-icon-flags-mobile {background-position: 
0px 0px; 
background-image:url(../../typo3conf/ext/add_mobile_flag/mobile-overlay.png);}

(where is this used)


so I could use the new 'flags'.
But only after inserting the new 'flag'-name into the sys_language 
record via phpmyadmin. as the new flags does not appear in the selection 
for the flag in a sys_language record in BE.


bernd
--
http://www.pi-phi.de/cheatsheet.html
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] new flag-Icons in T3 4.5?

2011-09-26 Thread Bernd Wilke
On Wed, 21 Sep 2011 11:39:52 +0200, Bernd Wilke wrote:


> so I don't want extension-...-icons but flags-mobile I changed it to:
> $icons1 = array('flags-mobile', 'flags-mobile-overlay');
> t3lib_SpriteManager::addIconSprite($icons1,t3lib_extMgm::siteRelPath
('add_mobile_flag')
> . 'icon.css');
> and
> .t3-icon-mobile.t3-icon-flags-mobile {background-position:
> 0px 0px;
> background-image:url(../../typo3conf/ext/add_mobile_flag/mobile.png); }
> .t3-icon-mobile-overlay.t3-icon-flags-mobile {background-position:
> 0px 0px;
> background-image:url(../../typo3conf/ext/add_mobile_flag/mobile-
overlay.png);}
> (where is this used)
> 
> 
> so I could use the new 'flags'.
> But only after inserting the new 'flag'-name into the sys_language
> record via phpmyadmin. as the new flags does not appear in the selection
> for the flag in a sys_language record in BE.

extending the selection is very easy: looking in the TCA you can find 
that all possible languages are hardcoded in the definition of the field 
sys_language.flag
but you can add further 'flags'.
just unsure about the usable numbers.

my solution at the moment: add these lines to ext_tables.php:
// load the default TCA values for sys_language
t3lib_div::loadTCA('sys_language');
// add a further flag to the selection:
$TCA['sys_language']['columns']['flag']['config']['items']['1001'] = 
   array('mobile','mobile','EXT:add_mobile_flag/mobile.png');

bernd
-- 
/home/wilke/Documents/NG-signature.txt
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english