CocoaPods add subspecs for locale - resources

I have a podspec for my shared code and I was including all locales but then users of the Podspec get their app localized for all languages when they just want a subset.
I would like to allow specification of just the subset for example just English. But I cannot seem to get this type of behavior to work. Any advice?
Sampe Podfile usage
# Just English languages
pod 'MyStuff', '2.4.0'
pod 'MyStuff/en', '2.4.0'
pod 'MyStuff/en-GB', '2.4.0'
Sample Podspec for MyStuff.podspec
Pod::Spec.new do |s|
s.name = 'MyStuff'
s.version = '2.4.0'
s.summary = "MyStuff for iOS."
s.source = {
:git => 'somewhere',
:tag => s.version.to_s
}
s.public_header_files = ['**/**/MyView.h', ...]
s.source_files = ['MyStuff/*.{h,m}' ]
s.resources = ['MyStuff/Resources/*.{png,xib}',
'MyStuff/config.plist']
s.platform = :ios, '5.0'
s.requires_arc = true
s.frameworks = 'CoreGraphics', 'Foundation', 'QuartzCore', 'SystemConfiguration', 'UIKit'
# All locales
s.subspec "all" do |all|
all.resources = ['MyStuff/localization/**']
all.preserve_paths = ['MyStuff/localization/**']
end
# Just en locale
s.subspec "en" do |en|
en.resources = ['MyStuff/localization/en.lproj']
en.preserve_paths = ['MyStuff/localization/en.lproj']
end
# Just en-GB locale
s.subspec "en-GB" do |enGB|
enGB.resources = ['MyStuff/localization/en-GB.lproj']
enGB.preserve_paths = ['MyStuff/localization/en-GB.lproj']
end
# Just fr locale
s.subspec "fr" do |fr|
fr.resources = ['MyStuff/localization/fr.lproj']
fr.preserve_paths = ['MyStuff/localization/fr.lproj']
end
# I have many other locales left out here for brevity.
end

You're going to want to used nested subspecs with default_subspec
# All is default (pod 'PodName/Locale' or pod 'PodName')
s.subspec "Locale" do |l|
l.default_subspec 'All'
l.subspec "All" do |en|
en.resources = 'MyStuff/localization'
en.preserve_paths = 'MyStuff/localization'
end
l.subspec "en" do |en|
en.resources = 'MyStuff/localization/en.lproj'
en.preserve_paths = 'MyStuff/localization/en.lproj'
end
l.subspec "en-GB" do |en|
en.resources = 'MyStuff/localization/en-GB.lproj'
en.preserve_paths = 'MyStuff/localization/en-GB.lproj'
end
l.subspec "en-US" do |en|
en.resources = 'MyStuff/localization/en-US.lproj'
en.preserve_paths = 'MyStuff/localization/en-US.lproj'
end
end
Then in the app's Podfile:
pod 'PodName/Locale/en-GB'
pod 'PodName/Locale/Klingon'
pod 'PodName/Locale/Yoda'
More:
CocoaPod docs
Example podspec with subspecs
Bonus hack
%w|en en-GB en-US|.map {|localename|
l.subspec localename do |loc|
loc.resources = "PodPath/To/Localization/#{localename}.lproj"
loc.preserve_paths = "PodPath/To/Localization/#{localename}.lproj"
end
}

Related

Editorconfig setting to allow object-initializer be aligned beneath the new-keyword

I'm using VisualStudio 2022 together with R# 2022.2.4.
Resharper is configured to apply alignment as shown in drawing below. (aligned with the new keyword)
The problem now is that the .editorconfigsettings used by our company come to complain about this due to the fact that we have the following in the editorconfig-file :
# Enforce formatting guidelines
dotnet_diagnostic.IDE0055.severity = error
(our C#-projects are also configured so that warnings are treated as errors, that's the reason why in the error-list I have 4 errors and not warnings)
Already went through the entire editorconfig file to see which setting is causing the error, but don't see anything wrong with it ?
Does anyone have an idea which settings I should change in editorconfig so that the error does not occur anymore ?
`
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
tab_width = 4
# New line preferences
end_of_line = unset
insert_final_newline = true
#### .NET Coding Conventions ####
# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false
file_header_template = unset
# this. and Me. preferences
dotnet_style_qualification_for_event = false:error
dotnet_style_qualification_for_field = false:error
dotnet_style_qualification_for_method = false:error
dotnet_style_qualification_for_property = false:error
# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true:error
dotnet_style_predefined_type_for_member_access = true:error
# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggestion
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
# Expression-level preferences
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_object_initializer = true:suggestion
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
# Field preferences
dotnet_style_readonly_field = true:suggestion
# Parameter preferences
dotnet_code_quality_unused_parameters = all:suggestion
# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = none
#### C# Coding Conventions ####
# var preferences
csharp_style_var_elsewhere = false:suggestion
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
# Expression-bodied members
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_pattern_matching = true:silent
csharp_style_prefer_switch_expression = true:suggestion
# Null-checking preferences
csharp_style_conditional_delegate_call = true:suggestion
# Modifier preferences
csharp_prefer_static_local_function = true:suggestion
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error
# Code-block preferences
csharp_prefer_braces =false:silent
csharp_prefer_simple_using_statement = true:suggestion
# Expression-level preferences
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
# 'using' directive preferences
csharp_using_directive_placement = outside_namespace:error
#### C# Formatting Rules ####
# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true
# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_labels = no_change
csharp_indent_switch_labels = true
# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false
# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = false
#### Naming styles ####
# Naming rules
dotnet_naming_rule.interface_naming.severity = error
dotnet_naming_rule.interface_naming.symbols = interface
dotnet_naming_rule.interface_naming.style = begins_with_i
dotnet_naming_rule.types_should_be_pascal_case.severity = error
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = error
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
dotnet_naming_rule.private_or_internal_field_should_be__camelcase.severity = error
dotnet_naming_rule.private_or_internal_field_should_be__camelcase.symbols = private_or_internal_field
dotnet_naming_rule.private_or_internal_field_should_be__camelcase.style = _camelcase
dotnet_naming_rule.non_public_field_should_be_pascalcase.severity = error
dotnet_naming_rule.non_public_field_should_be_pascalcase.symbols = non_public_field
dotnet_naming_rule.non_public_field_should_be_pascalcase.style = pascal_case
dotnet_naming_rule.const_field_should_be_pascalcase.severity = error
dotnet_naming_rule.const_field_should_be_pascalcase.symbols = const_field
dotnet_naming_rule.const_field_should_be_pascalcase.style = pascal_case
dotnet_naming_rule.static_readonly_field_should_be_pascalcase.severity = error
dotnet_naming_rule.static_readonly_field_should_be_pascalcase.symbols = static_readonly_field
dotnet_naming_rule.static_readonly_field_should_be_pascalcase.style = pascal_case
dotnet_naming_rule.parameters_should_be_camelcase.severity = error
dotnet_naming_rule.parameters_should_be_camelcase.symbols = parameters
dotnet_naming_rule.parameters_should_be_camelcase.style = camel_case
dotnet_naming_rule.locals_should_be_camelcase.severity = error
dotnet_naming_rule.locals_should_be_camelcase.symbols = locals
dotnet_naming_rule.locals_should_be_camelcase.style = camel_case
# Symbol specifications
dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
dotnet_naming_symbols.private_or_internal_field.required_modifiers =
dotnet_naming_symbols.non_public_field.applicable_kinds = field
dotnet_naming_symbols.non_public_field.applicable_accessibilities = protected, protected_internal, public
dotnet_naming_symbols.non_public_field.required_modifiers =
dotnet_naming_symbols.const_field.applicable_kinds = field
dotnet_naming_symbols.const_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.const_field.required_modifiers = const
dotnet_naming_symbols.static_readonly_field.applicable_kinds = field
dotnet_naming_symbols.static_readonly_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.static_readonly_field.required_modifiers = static, readonly
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
dotnet_naming_symbols.parameters.applicable_kinds = parameter
dotnet_naming_symbols.parameters.applicable_accessibilities = *
dotnet_naming_symbols.parameters.required_modifiers =
dotnet_naming_symbols.locals.applicable_kinds = local
dotnet_naming_symbols.locals.applicable_accessibilities = *
dotnet_naming_symbols.locals.required_modifiers =
# Naming styles
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_naming_style._camelcase.required_prefix = _
dotnet_naming_style._camelcase.required_suffix =
dotnet_naming_style._camelcase.word_separator =
dotnet_naming_style._camelcase.capitalization = camel_case
dotnet_naming_style.camel_case.required_prefix =
dotnet_naming_style.camel_case.required_suffix =
dotnet_naming_style.camel_case.word_separator =
dotnet_naming_style.camel_case.capitalization = camel_case
#### dotnet diagnostics ####
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/
# Remove 'this' qualification (not yet supported on build)
dotnet_diagnostic.IDE0003.severity = error
# Naming styles
dotnet_diagnostic.IDE1006.severity = error
# IDE0036: Order modifiers
dotnet_diagnostic.IDE0036.severity = error
# IDE0040: Add accessibility modifiers
dotnet_diagnostic.IDE0040.severity = error
# IDE0043: Invalid format string
dotnet_diagnostic.IDE0043.severity = error
# Use language keywords instead of framework type names for type references (not yet supported on build)
dotnet_diagnostic.IDE0049.severity = error
##### code quality ####
# CA1001: Types that own disposable fields should be disposable
dotnet_diagnostic.CA1001.severity = error
# CA1032: Implement standard exception constructors
dotnet_diagnostic.CA1032.severity = error
# CA1065: Do not raise exceptions in unexpected locations
dotnet_diagnostic.CA1065.severity = error
# CA1707: Identifiers should not contain underscores
dotnet_diagnostic.CA1707.severity = error
# CA1727: Use PascalCase for named placeholders
dotnet_diagnostic.CA1727.severity = error
# Enforce formatting guidelines
dotnet_diagnostic.IDE0055.severity = error
# Raise error if Tasks aren't awaited, even if calling method is not marked async
dotnet_diagnostic.LindhartAnalyserMissingAwaitWarning.severity=error
# Do not complain about version number not being Major.Minor.Build.Revision (we use semver, which does not include revision)
dotnet_diagnostic.CS7035.severity = none
# Avoid awaiting return a Task representing work that was not started within your context...
dotnet_diagnostic.VSTHRD003.severity = none
# AsyncLazy
dotnet_diagnostic.VSTHRD011.severity = none
# Use explicit task scheduler.
dotnet_diagnostic.VSTHRD105.severity = none
# Don't force async methods to end with Async
dotnet_diagnostic.VSTHRD200.severity = none
##### exceptions to the rules ####
# C# files in a "Contracts" project
[**.Contracts/*.cs]
# Overrides the rule that interfaces should start with 'I' because message interfaces do not need to.
dotnet_naming_rule.interface_naming.style = pascal_case
# C# files in a "Test" project
[**{Test.cs,Tests.cs}]
# CA1707: Identifiers should not contain underscores
# Test names can contain underscores for readability
dotnet_diagnostic.CA1707.severity = silent
`

R Shiny Dashboard Header dropdown buttons lead to scrolling

The buttons in the header of my shiny dashboard should be easy to see and press. However, at the moment the dropdownbuttons pop up within the header and people have to scroll in order to see the buttons.
Below you will find a reproducible code sample.
Here is some further information on my session:
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
shinythemes_1.1.2
shinyWidgets_0.5.3
shinyBS_0.61
if (interactive()) {
library(shiny)
require(dplyr)
require(shinydashboard)
require(shinyWidgets)
library(shinythemes)
# A dashboard header with 3 dropdown menus
header <- dashboardHeader(
title = "Dashboard Demo",
tags$li(class = "dropdown",tags$br(),
dropdownButton(inputId = "mydropdown",label = "",# style="minimal",
# label="Language",
circle = FALSE,
icon = icon("globe"),#,status = "primary",
badgeStatus = "success",
prettyRadioButtons(inputId = "selected_language", label="",
choiceNames = list(
HTML("<font color='black'>Deutsch</font>"),
tags$span(style = "color:black", "English")
),
choiceValues = c( "de", "en"),
# inline=TRUE,
selected = "en"
)
)# useShinyalert(), # Set up shinyalert #
,
block = TRUE) ,
tags$li(class = "dropdown",introjsUI(), tags$br(),actionBttn(inputId = "Help",
# color = "primary",
style =
"minimal",
icon = icon("question", lib="font-awesome"),label ="Help", size="sm"),
block = TRUE),tags$li( class = "dropdown",tags$br(),
introBox(dropdownMenu(
type = "notifications",
icon = icon("envelope", lib = "glyphicon"),
badgeStatus = NULL,
headerText = "App maintainer contact:",
notificationItem("TestMailAdress", icon("envelope", lib = "glyphicon"))
), data.step=5, data.intro = "Any further questions? Contact us!")
))
shinyApp(
ui = dashboardPage(
header,
dashboardSidebar(),
dashboardBody()
),
server = function(input, output) { }
)
}
# }
thanks a lot for your answers. I figured it out myself. The introBox referring to the header button messed things up. So without the helping window it works... still would be nice to have the introBox working, but I guess it is just not supported yet...
if (interactive()) {
library(shiny)
require(dplyr)
require(shinydashboard)
require(shinyWidgets)
library(shinythemes)
# A dashboard header with 3 dropdown menus
header <- dashboardHeader(
title = "Dashboard Demo",
tags$li(class = "dropdown",tags$br(),
dropdownButton(inputId = "mydropdown",label = "",# style="minimal",
# label="Language",
circle = FALSE,
icon = icon("globe"),#,status = "primary",
badgeStatus = "success",
prettyRadioButtons(inputId = "selected_language", label="",
choiceNames = list(
HTML("<font color='black'>Deutsch</font>"),
tags$span(style = "color:black", "English")
),
choiceValues = c( "de", "en"),
# inline=TRUE,
selected = "en"
)
)# useShinyalert(), # Set up shinyalert #
,
block = TRUE) ,
tags$li(class = "dropdown",introjsUI(), tags$br(),actionBttn(inputId = "Help",
# color = "primary",
style =
"minimal",
icon = icon("question", lib="font-awesome"),label ="Help", size="sm"),
block = TRUE),tags$li( class = "dropdown",tags$br(),
dropdownMenu(
type = "notifications",
icon = icon("envelope", lib = "glyphicon"),
badgeStatus = NULL,
headerText = "App maintainer contact:",
notificationItem("TestMailAdress", icon("envelope", lib = "glyphicon"))
)
))
shinyApp(
ui = dashboardPage(
header,
dashboardSidebar(),
dashboardBody()
),
server = function(input, output) { }
)
}
# }

Ommit optional blocks in terraform module

Currently I'm trying to create a universal sql_database module in Terraform. I want to have control over arguments I want to include in this resource. For example one time I need only required arguments but next time in another project I need them plus threat_detection_policy block with all nested arguments.
modules/sql_database.tf
resource "azurerm_sql_database" "sql-db" {
name = var.sql-db-name
resource_group_name = data.azurerm_resource_group.rg-name.name
location = var.location
server_name = var.server-name
edition = var.sql-db-edition
collation = var.collation
create_mode = var.create-mode
requested_service_objective_name = var.sql-requested-service-objective-name
read_scale = var.read-scale
zone_redundant = var.zone-redundant
extended_auditing_policy {
storage_endpoint = var.eap-storage-endpoint
storage_account_access_key = var.eap-storage-account-access-key
storage_account_access_key_is_secondary = var.eap-storage-account-access-key-is-secondary
retention_in_days = var.eap-retention-days
}
import = {
storage_uri = var.storage-uri
storage_key = var.storage-key
storage_key_type = var.storage-key-type
administrator_login = var.administrator-login
administrator_login_password = var.administrator-login-password
authentication_type = var.authentication-type
operation_mode = var.operation-mode
}
threat_detection_policy = {
state = var.state
disabled_alerts = var.disabled-alerts
email_account_admins = var.email-account-admins
email_addresses = var.email-addresses
retention_days = var.retention-days
storage_account_access_key = var.storage-account-access-key
storage_endpoint = var.storage-endpoint
use_server_default = var.use-server-default
}
}
modules/variables.tf (few sql_database vars)
variable "sql-db-edition" {
type = string
}
...
variable "state" { #for example this should be optional
type = string
}
...
main.tf
module "sql_database" {
source = "./modules/sql_database"
sql-db-name = "sqldbs-example"
location = "westus"
server-name = "sqlsrv-example"
storage-uri = "" #some values
storage-key = ""
storage-key_type = ""
administrator-login = ""
administrator-login-password = ""
authentication-type = ""
operation-mode = ""
sql-db-edition = "Standard"
collation = "SQL_LATIN1_GENERAL_CP1_CI_AS"
create-mode = "Default"
sql-requested_service_objective_name = "S0"
requested_service_objective_id = ""
read-scale = "false"
zone_redundant = ""
source_database_id = ""
restore_point_in_time = ""
max_size_bytes = ""
source_database_deletion_date = ""
elastic_pool_name = ""
#variables below should be all optional
state = ""
disabled_alerts = ""
email_account_admins = ""
email_addresses = ""
retention_days = 6
storage_account_access_key = ""
storage_endpoint = ""
use_server_default = ""
storage_endpoint = ""
storage_account_access_key = ""
storage_account_access_key_is_secondary = "false"
retention_in_days = 6
}
Thank you in advance for help!
For your requirements, I think a possible way is to set the default values inside the module and make the default values act as you do not set them. For example, in the threat_detection_policy block, the property use_server_default, when you do not set it, the default value is Disabled. And when you want to set them, just input the values in the module block.

Using ClassificationAttributeValueTranslator on impex

I'm trying to use the ClassificationAttributeValueTranslator on an impex. I have some examples with the class ClassificationAttributeTranslator working but can't make this work.
$productCatalog = myCatalog
$classificationCatalog = myClassification
$catalogVersion = catalogversion(catalog(id[default = $productCatalog]), version[default = 'Staged'])[unique = true, default = $productCatalog:Staged]
$clAttrModifiers = system = '$classificationCatalog', version = '1.0', translator = de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator, lang = es
//Q_1001 is the ClassAttributeAssignment ID
$feature1 = #Q_1001 [$clAttrModifiers];
//123012 is the product code and
INSERT_UPDATE Product; code[unique = true]; $feature1; $catalogVersion
; 123012 ; TEST VALUE;
I'm getting this error
INSERT_UPDATE Product;code[unique = true];#Q_1001 [system = 'myClassification', version = '1.0', translator = de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator, lang = es];catalogversion(catalog(id[default = myCatalog]), version[default = 'Staged'])[unique = true, default = myCatalog:Staged];# invalid special value translator class 'de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator' - cannot create due to java.lang.InstantiationException: de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator
,,,,invalid special value translator class 'de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator' - cannot create due to java.lang.InstantiationException: de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator;123012;TEST VALUE;
You have to use de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeTranslator and not de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator

DEBUG: Routing failed, re-queued. Kannel

Hi I am trying to setup Kannel 1.4.3 for sending and receiving SMS. But I'm getting Routing Failed error
ERROR: AT2[Huawei-E220-00]: Couldn't connect (retrying in 10 seconds).
Message in the browser:
3: Queued for later delivery
Details:
Modem - Huawei e220
Sim - AT&T
OS - Ubuntu 14.04 LTS
Please let me know if there is anything wrong in the following smskannel.conf:
#---------------------------------------------
# CORE
#
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#---------------------------------------------
# SMSC CONNECTIONS
#
group = smsc
smsc = at
smsc-id = Huawei-E220-00
port = 10000
modemtype = huawei_e220_00
device = /dev/ttyUSB0
sms-center = +13123149810
my-number = +1xxxxxxxxxx
connect-allow-ip = 127.0.0.1
sim-buffering = true
keepalive = 5
#---------------------------------------------
# SMSBOX SETUP
#
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013
#---------------------------------------------
# SEND-SMS USERS
#
group = sendsms-user
username = tester
password = foobar
#---------------------------------------------
# SERVICES
group = sms-service
keyword = nop
text = "You asked nothing and I did it!"
group = sms-service
keyword = default
text = "No service specified"
group = sms-service
keyword = complex
catch-all = yes
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
get-url = "http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar&to=+16782304782&text=Hello World"
#---------------------------------------------
# MODEMS
#
group = modems
id = huawei_e220_00
name = "Huawei E220"
detect-string = "huawei"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
message-storage = "SM"
need-sleep = true
speed = 460800`

Resources