@ -140,20 +140,18 @@ set( CALAMARES_DESCRIPTION_SUMMARY
# T O D O : d r o p t h e e s _ E S t r a n s l a t i o n f r o m T r a n s i f e x
#
# N O T E : m o v e eo ( Esperanto ) t o _ o k o n c e Q t c a n a c t u a l l y c r e a t e a
# l o c a l e f o r i t . ( Q t 5 . 1 2 . 2 c a n , s e e c h e c k l a t e r o n ) .
# N O T E : u p d a t e t h e s e l i n e s b y r u n n i n g t x s t a t s . p y , o r c o p y t h e s e f o u r l i n e s
# a n d p r e f i x e a c h v a r i a b l e n a m e w i t h " p " , s o t h a t t h e a u t o m a t i c
# c h e c k s f o r n e w l a n g u a g e s a n d m i s s p e l l e d o n e s a r e done ( that is,
# c o p y t h e s e f o u r l i n e s t o f o u r b a c k u p l i n e s , a d d " p " , a n d t h e n u p d a t e
# t h e o r i g i n a l f o u r l i n e s w i t h t h e c u r r e n t t r a n s l a t i o n s ) .
# l o c a l e f o r i t . ( Q t 5 . 1 2 . 2 c a n , s e e T r a n s l a t i o n S t a t u s s e c t i o n ) .
# N O T E : m o v e ie ( Interlingue ) t o _ o k o n c e Q t s u p p o r t s i t .
# N O T E : u p d a t e t h e s e l i n e s b y r u n n i n g ` t x s t a t s . p y ` , o r f o r f u l l a u t o m a t i o n
# ` t x s t a t s . p y - e ` . S e e a l s o
#
# T o t a l 6 8 l a n g u a g e s
set ( _tx_complete ca fi_FI he hr nl pt_BR sq tg tr_TR uk zh_TW )
set ( _tx_good as ast az az_AZ be cs_CZ da de es fr hi hu it_IT ja
k o l t m l p t _ P T r u s k s v z h _ C N )
set ( _tx_ok ar bg el en_GB es_MX es_PR et eu fa gl id i e i s mr nb
set ( _tx_ok ar bg el en_GB es_MX es_PR et eu fa gl id i s mr nb
p l r o s l s r s r @ l a t i n t h )
set ( _tx_incomplete bn ca@valencia eo fr_CH gu kk kn lo lv mk ne_NP
set ( _tx_incomplete bn ca@valencia eo fr_CH gu ie kk kn lo lv mk ne_NP
u r u z )
# # # R e q u i r e d v e r s i o n s
@ -286,14 +284,6 @@ find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED Concurrent Core Gui LinguistTool
if ( WITH_QML )
find_package ( Qt5 ${ QT_VERSION } CONFIG REQUIRED Quick QuickWidgets )
endif ( )
if ( Qt5_VERSION VERSION_GREATER 5.12.1 )
# A t l e a s t Q t 5 . 1 2 . 2 s e e m s t o s u p p o r t E s p e r a n t o i n Q L o c a l e
if ( "eo" IN_LIST _tx_incomplete )
message ( STATUS "Esperanto support since Qt 5.12.2, enabling Esperanto locale" )
list ( REMOVE_ITEM _tx_incomplete "eo" )
list ( APPEND _tx_ok "eo" )
endif ( )
endif ( )
# O p t i o n a l Q t p a r t s
find_package ( Qt5DBus CONFIG )
@ -429,30 +419,22 @@ set(Calamares_WITH_QML ${WITH_QML})
# # # T r a n s i f e x T r a n s l a t i o n s t a t u s
#
# C o n s t r u c t l a n g u a g e l i s t s f o r u s e . I f t h e r e a r e p _ t x * v a r i a b l e s ,
# t h e n r u n a n e x t r a c m a k e - t i m e c h e c k f o r c o n s i s t e n c y o f t h e o l d
# ( p _ t x * ) a n d new ( _tx* ) l i s t s .
# C o n s t r u c t l a n g u a g e l i s t s f o r u s e .
#
set ( prev_tx ${ p_tx_complete } ${ p_tx_good } ${ p_tx_ok } ${ p_tx_incomplete } )
if ( Qt5_VERSION VERSION_GREATER 5.12.1 )
# A t l e a s t Q t 5 . 1 2 . 2 s e e m s t o s u p p o r t E s p e r a n t o i n Q L o c a l e
if ( "eo" IN_LIST _tx_incomplete )
message ( STATUS "Esperanto support since Qt 5.12.2, enabling Esperanto locale" )
list ( REMOVE_ITEM _tx_incomplete "eo" )
list ( APPEND _tx_ok "eo" )
endif ( )
endif ( )
set ( curr_tx ${ _tx_complete } ${ _tx_good } ${ _tx_ok } ${ _tx_incomplete } )
set ( tx_errors OFF )
if ( prev_tx )
# G o n e i n n e w l i s t
foreach ( l ${ prev_tx } )
list ( FIND curr_tx ${ l } p_l )
if ( p_l EQUAL -1 )
message ( WARNING "Language ${l} was present in previous translations and is now absent." )
set ( tx_errors ON )
endif ( )
endforeach ( )
if ( curr_tx )
# N e w i n l i s t
foreach ( l ${ curr_tx } )
list ( FIND prev_tx ${ l } p_l )
if ( p_l EQUAL -1 )
message ( WARNING "Language ${l} is new." )
set ( tx_errors ON )
endif ( )
set ( p_l "lang/calamares_${l}.ts" )
if ( NOT EXISTS ${ CMAKE_CURRENT_SOURCE_DIR } / ${ p_l } )
message ( WARNING "Language ${l} has no .ts file yet." )
@ -463,7 +445,6 @@ if ( prev_tx )
unset ( p_l )
unset ( l )
endif ( )
unset ( prev_tx )
unset ( curr_tx )
if ( tx_errors )
message ( FATAL_ERROR "Translation warnings, see above." )