func NewVerifyStrings(options common.Options) verifyStrings { languageFilenames := common.ParseStringList(options.LanguageFilesFlag, ",") languages := common.ParseStringList(options.LanguagesFlag, ",") return verifyStrings{options: options, InputFilename: options.FilenameFlag, OutputDirname: options.OutputDirFlag, LanguageFilenames: languageFilenames, Languages: languages, SourceLanguage: options.SourceLanguageFlag, } }
func NewCreateTranslations(options common.Options) createTranslations { languages := common.ParseStringList(options.LanguagesFlag, ",") return createTranslations{options: options, Filename: options.FilenameFlag, OutputDirname: options.OutputDirFlag, SourceLanguage: options.SourceLanguageFlag, Languages: languages, TotalStrings: 0, TotalFiles: 0} }