transforms/locale
changeset 1151 76498004a954
parent 454 1ef5e4f29411
child 5527 611b2d6efdfe
equal deleted inserted replaced
1150:b6dd488e8bb7 1151:76498004a954
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 # general locale
    26 # general locale
    27 <transform dir link hardlink path=.*/locale$ -> default facet.locale true>
    27 <transform dir link hardlink path=.*/locale$ -> default facet.locale true>
    28 
    28 
       
    29 # add locale specific facets to using the the locale name encoded in
       
    30 # the pathname.  We don't need the portion after the '@' or '.', only
       
    31 # .../locale/{locale-name}[@.]*.
    29 <transform dir file link hardlink \
    32 <transform dir file link hardlink \
    30     path=.*/locale/([^/]+)(\..+){0,1}(/.+){0,1}$ -> \
    33     path=.*/locale/([^/@\.]+)(.+){0,1}(/.+){0,1}$ -> \
    31     default facet.locale.%<\1> true>
    34     default facet.locale.%<\1> true>
    32 
    35 
    33 # unfacet the C locale
    36 # unfacet the C locale
    34 <transform dir file link hardlink \
    37 <transform dir file link hardlink \
    35     facet.locale.C=.+ -> delete facet.locale.C .+ >
    38     facet.locale.C=.+ -> delete facet.locale.C .+ >