Skip to content

Commit

Permalink
Initial version with very basic stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Baggio committed Nov 11, 2017
1 parent 899fa25 commit 5d6e37a
Show file tree
Hide file tree
Showing 59 changed files with 102,257 additions and 2 deletions.
1,020 changes: 1,020 additions & 0 deletions src/i18next-net/.vs/config/applicationhost.config

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/i18next-net/i18next-net.Examples.Console/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
33 changes: 33 additions & 0 deletions src/i18next-net/i18next-net.Examples.Console/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace i18next_net.Examples.Console
{
class Program
{
static void Main(string[] args)
{
i18next i18n = new i18next(new InitOptions()
{
defaultNS = "common",
localeFileType = LocaleFileTypeEnum.Path,
fallbackLng = "en"
});


i18n.changeLanguage("pt");
var res = i18n.t("activities:CONTENT.COMMENT_ADD", new {text= "blablbla", type = "a pendencia", title = "Revisar orçamento" });
System.Console.WriteLine(res);

i18n.changeLanguage("en");
var res2 = i18n.t("activities:CONTENT.COMMENT_ADD", new { text = "blablbla", type = "a pendencia", title = "Revisar orçamento" });
System.Console.WriteLine(res2);

System.Console.ReadKey();

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("i18next-net.Examples.Console")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("i18next-net.Examples.Console")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("d1fa4705-0614-476e-86ff-326d9a1518bc")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
10,760 changes: 10,760 additions & 0 deletions src/i18next-net/i18next-net.Examples.Console/bin/Debug/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"CONTENT": {
"COMMENT_ADD": "Commented \"{{text}}\" on {{type}} \"{{title}}\"",
"ATTACHMENT_ADD": "Added the attachment to {{type}} {{title}}",
"UPDATED": "Updated details for {{type}} {{title}}",
"CREATED": "Created a new {{type}} {{title}}",
"STATUS_CLOSED": "Closed the {{type}} {{title}}",
"STATUS_OPEN": "Changed the status of {{type}} {{title}} to OPEN",
"STATUS_AWAITING_REVIEW": "Send {{type}} {{title}} to review",
"STATUS_READY": "Set the {{type}} {{title}} as ready",
"STATUS_READY_MEETING": "Set the meeting as Ready",
"STATUS_PUBLISHED": "Published the {{type}} {{title}}",
"SUBSCRIBER_ADD": "Added a subscriber to {{type}} {{title}}",
"SUBSCRIBER_DELETE": "Removed a subscriber from {{type}} {{title}}",
"SUBSCRIBER_UPDATE": "Updated the subscribers for {{type}} {{title}}",
"SUBSCRIBER_UPDATE_MEETING": "Updated the atendees for the meeting",
"ATTACHMENT_DOWNLOAD": "Downloaded the attachment {{text}} from {{type}} {{title}}",
"CREATED_MEETING": "Created a new meeting",
"CREATED_MEETINGMINUTE": "Created a new meeting minute",
"COMMENT_MENTION": "Mentioned {{userName}} on the comment {{text}}",
"BLUEBOOK_DOWNLOAD": "Downloaded the meeting's BLUEBOOK"
},
"Type":{
"Task": "action",
"Pipeline": "pipeline",
"PipelineItem": "opportunity",
"Meeting": "meeting",
"MeetingAgendaItem": "meeting agenda",
"MeetingMinute": "meeting minute",
"KnowledgeArticle": "article"
},
"list": {
"range": "Range",
"from": "From",
"to": "To",
"title": "Browse recent activity",
"workgroups": "Boards & Projects",
"actionUser": "Action User",
"types": "Types",
"previous": "Previous",
"next": "Next",
"loading": "Loading...",
"noTypes": "No types found",
"noUsers": "No users found",
"noWorkgroups": "No boards/projects found"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"CONTENT": {
"COMMENT_ADD": "Comentou \"{{text}}\" n{{type}} \"{{title}}\"",
"ATTACHMENT_ADD": "Adicionou o anexo {{text}} n{{type}} {{title}}",
"UPDATED": "Atualizou detalhes d{{type}} {{title}}",
"CREATED": "Criou {{type}} {{title}}",
"STATUS_CLOSED": "Finalizou {{type}} {{title}}",
"STATUS_OPEN": "Reabriu {{type}} {{title}}",
"STATUS_AWAITING_REVIEW": "Enviou {{type}} {{title}} para revisão",
"STATUS_READY": "Marcou como pronta para realização {{type}} {{title}}",
"STATUS_READY_MEETING": "Marcou uma reunião como Pronta para Realização",
"STATUS_PUBLISHED": "Publicou {{type}} {{title}}",
"SUBSCRIBER_ADD": "Adicionou um inscrito n{{type}} {{title}}",
"SUBSCRIBER_DELETE": "Removeu um inscrito d{{type}} {{title}}",
"SUBSCRIBER_UPDATE": "Atualizou os inscritos d{{type}} {{title}}",
"SUBSCRIBER_UPDATE_MEETING": "Atualizou os participantes da reunião",
"ATTACHMENT_DOWNLOAD": "Fez o download do anexo {{text}} d{{type}} {{title}}",
"CREATED_MEETING": "Criou uma nova reunião",
"CREATED_MEETINGMINUTE": "Criou uma ata na reunião",
"COMMENT_MENTION": "Mencionou {{userName}} no comentário {{text}}",
"BLUEBOOK_DOWNLOAD": "Fez o download do BLUEBOOK da reunião"
},
"Type": {
"Task": "a ação",
"Pipeline": "o pipeline",
"PipelineItem": "a oportunidade",
"Meeting": "a reunião",
"MeetingAgendaItem": "a pauta",
"MeetingMinute": "a ata",
"KnowledgeArticle": "o artigo"
},
"list":{
"range": "Intervalo",
"from": "De",
"to": "Até",
"title": "Explorar atividade recente",
"workgroups": "Boards & Projetos",
"actionUser": "Usuário da Ação",
"types": "Tipos",
"previous": "Anterior",
"next": "Próxima",
"loading": "Carregando...",
"noTypes": "Nenhum tipo encontrado",
"noUsers": "Nenhum usuário encontrado",
"noWorkgroups": "Nenhum board/projeto encontrado"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D1FA4705-0614-476E-86FF-326D9A1518BC}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>i18next_net.Examples.Console</RootNamespace>
<AssemblyName>i18next-net.Examples.Console</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="locales\en\activities.json" />
<None Include="locales\pt\activities.json" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\i18next-net\i18next-net.csproj">
<Project>{5293fe76-958a-4c12-92ba-9db2192f463a}</Project>
<Name>i18next-net</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy /E "$(ProjectDir)\locales" "$(TargetDir)\locales\*"</PostBuildEvent>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"CONTENT": {
"COMMENT_ADD": "Commented \"{{text}}\" on {{type}} \"{{title}}\"",
"ATTACHMENT_ADD": "Added the attachment to {{type}} {{title}}",
"UPDATED": "Updated details for {{type}} {{title}}",
"CREATED": "Created a new {{type}} {{title}}",
"STATUS_CLOSED": "Closed the {{type}} {{title}}",
"STATUS_OPEN": "Changed the status of {{type}} {{title}} to OPEN",
"STATUS_AWAITING_REVIEW": "Send {{type}} {{title}} to review",
"STATUS_READY": "Set the {{type}} {{title}} as ready",
"STATUS_READY_MEETING": "Set the meeting as Ready",
"STATUS_PUBLISHED": "Published the {{type}} {{title}}",
"SUBSCRIBER_ADD": "Added a subscriber to {{type}} {{title}}",
"SUBSCRIBER_DELETE": "Removed a subscriber from {{type}} {{title}}",
"SUBSCRIBER_UPDATE": "Updated the subscribers for {{type}} {{title}}",
"SUBSCRIBER_UPDATE_MEETING": "Updated the atendees for the meeting",
"ATTACHMENT_DOWNLOAD": "Downloaded the attachment {{text}} from {{type}} {{title}}",
"CREATED_MEETING": "Created a new meeting",
"CREATED_MEETINGMINUTE": "Created a new meeting minute",
"COMMENT_MENTION": "Mentioned {{userName}} on the comment {{text}}",
"BLUEBOOK_DOWNLOAD": "Downloaded the meeting's BLUEBOOK"
},
"Type":{
"Task": "action",
"Pipeline": "pipeline",
"PipelineItem": "opportunity",
"Meeting": "meeting",
"MeetingAgendaItem": "meeting agenda",
"MeetingMinute": "meeting minute",
"KnowledgeArticle": "article"
},
"list": {
"range": "Range",
"from": "From",
"to": "To",
"title": "Browse recent activity",
"workgroups": "Boards & Projects",
"actionUser": "Action User",
"types": "Types",
"previous": "Previous",
"next": "Next",
"loading": "Loading...",
"noTypes": "No types found",
"noUsers": "No users found",
"noWorkgroups": "No boards/projects found"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"CONTENT": {
"COMMENT_ADD": "Comentou \"{{text}}\" n{{type}} \"{{title}}\"",
"ATTACHMENT_ADD": "Adicionou o anexo {{text}} n{{type}} {{title}}",
"UPDATED": "Atualizou detalhes d{{type}} {{title}}",
"CREATED": "Criou {{type}} {{title}}",
"STATUS_CLOSED": "Finalizou {{type}} {{title}}",
"STATUS_OPEN": "Reabriu {{type}} {{title}}",
"STATUS_AWAITING_REVIEW": "Enviou {{type}} {{title}} para revisão",
"STATUS_READY": "Marcou como pronta para realização {{type}} {{title}}",
"STATUS_READY_MEETING": "Marcou uma reunião como Pronta para Realização",
"STATUS_PUBLISHED": "Publicou {{type}} {{title}}",
"SUBSCRIBER_ADD": "Adicionou um inscrito n{{type}} {{title}}",
"SUBSCRIBER_DELETE": "Removeu um inscrito d{{type}} {{title}}",
"SUBSCRIBER_UPDATE": "Atualizou os inscritos d{{type}} {{title}}",
"SUBSCRIBER_UPDATE_MEETING": "Atualizou os participantes da reunião",
"ATTACHMENT_DOWNLOAD": "Fez o download do anexo {{text}} d{{type}} {{title}}",
"CREATED_MEETING": "Criou uma nova reunião",
"CREATED_MEETINGMINUTE": "Criou uma ata na reunião",
"COMMENT_MENTION": "Mencionou {{userName}} no comentário {{text}}",
"BLUEBOOK_DOWNLOAD": "Fez o download do BLUEBOOK da reunião"
},
"Type": {
"Task": "a ação",
"Pipeline": "o pipeline",
"PipelineItem": "a oportunidade",
"Meeting": "a reunião",
"MeetingAgendaItem": "a pauta",
"MeetingMinute": "a ata",
"KnowledgeArticle": "o artigo"
},
"list":{
"range": "Intervalo",
"from": "De",
"to": "Até",
"title": "Explorar atividade recente",
"workgroups": "Boards & Projetos",
"actionUser": "Usuário da Ação",
"types": "Tipos",
"previous": "Anterior",
"next": "Próxima",
"loading": "Carregando...",
"noTypes": "Nenhum tipo encontrado",
"noUsers": "Nenhum usuário encontrado",
"noWorkgroups": "Nenhum board/projeto encontrado"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b672bd3b7d2566f9321220fc62e97275a1936aab
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\bin\Debug\i18next-net.Examples.Console.exe.config
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\bin\Debug\i18next-net.Examples.Console.exe
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\bin\Debug\i18next-net.Examples.Console.pdb
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\bin\Debug\i18next-net.dll
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\bin\Debug\Newtonsoft.Json.dll
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\bin\Debug\i18next-net.pdb
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\bin\Debug\Newtonsoft.Json.xml
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\obj\Debug\i18next-net.Examples.Console.csprojResolveAssemblyReference.cache
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\obj\Debug\i18next-net.Examples.Console.csproj.CoreCompileInputs.cache
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\obj\Debug\i18next-net.Examples.Console.exe
C:\Projetos\Repos\i18next-net\src\i18next-net\i18next-net.Examples.Console\obj\Debug\i18next-net.Examples.Console.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions src/i18next-net/i18next-net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.26730.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "i18next-net", "i18next-net\i18next-net.csproj", "{5293FE76-958A-4C12-92BA-9DB2192F463A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "i18next-net.Examples.Console", "i18next-net.Examples.Console\i18next-net.Examples.Console.csproj", "{D1FA4705-0614-476E-86FF-326D9A1518BC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +17,10 @@ Global
{5293FE76-958A-4C12-92BA-9DB2192F463A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5293FE76-958A-4C12-92BA-9DB2192F463A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5293FE76-958A-4C12-92BA-9DB2192F463A}.Release|Any CPU.Build.0 = Release|Any CPU
{D1FA4705-0614-476E-86FF-326D9A1518BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1FA4705-0614-476E-86FF-326D9A1518BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1FA4705-0614-476E-86FF-326D9A1518BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1FA4705-0614-476E-86FF-326D9A1518BC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading

0 comments on commit 5d6e37a

Please sign in to comment.